Viewing 15 posts - 8,266 through 8,280 (of 8,416 total)
RBarryYoung (4/19/2009)
Technically, its a constant scan. They're very fast. 🙂
Well I did say it was in disguise. 🙂
Constant scans are quite fast.
Not fast enough when SS2K5 uses them...
April 19, 2009 at 6:18 pm
Hi,
Several different solutions have been provided, all of which work - some even use EXISTS as you requested.
If you don't understand them, please try again. If you still don't...
April 19, 2009 at 5:43 pm
Lynn Pettis (4/19/2009)
You know, after a SNOW DAY on Friday, it is actually quite nice here today in Colorado. So where are you that it is cold and wet?
Wellington,...
April 19, 2009 at 4:35 pm
RBarryYoung (4/19/2009)
Still a little puzzled. I thought that you only got row-versioning if you turned Snapshots or RCSI on?
I know, it's a common thing. SS2K5 uses row-versioning internally...
April 19, 2009 at 3:29 pm
Jeff Moden (4/19/2009)
"It Depends" on the underlying reason as to why they want to move the logic.
That's true. My point was that if the validation code already existed in...
April 19, 2009 at 3:21 pm
RBarryYoung (4/19/2009)
Which one's Snarky?
If it helps at all (calm things down a bit) - I'm quite happy with the label 😉
Everyone have a good day. It's wet and cold...
April 19, 2009 at 3:06 pm
Jeff Moden (4/19/2009)
That would be part of the problem.
I quote "you owe me a new monitor!" :laugh:
April 19, 2009 at 3:03 pm
Thank you RBarryYoung.
@bitbucket: Please note that Paul Neilsen and I are different people. There is a clue in my surname.
The example that springs to mind is where a...
April 19, 2009 at 2:59 pm
RBarryYoung (4/19/2009)
...
Select 1 as Month
Union All Select 2
...
April 19, 2009 at 2:52 pm
Replacing the UPSERT with a DELETE then INSERT doesn't scale very well.
This is a demo of an alternative:
--DROP TABLE #Destination, #Staging
CREATE TABLE #Destination (a INT IDENTITY(1,1) PRIMARY KEY, Data VARCHAR(36)...
April 19, 2009 at 8:11 am
I know it's deprecated, but GROUP BY ALL would work here:
CREATE TABLE #t1 (a INT IDENTITY(1,1) PRIMARY KEY)
CREATE TABLE #t2 (a INT IDENTITY(5,1) PRIMARY KEY)
SET NOCOUNT ON
GO
INSERT #t1 DEFAULT VALUES;
INSERT...
April 19, 2009 at 7:50 am
Just a quick addition:
If you use DATEPART with weekday, make sure DATEFIRST is SET appropriately.
It is possible to write the comparison generically for any DATEFIRST by using @@DATEFIRST, but I...
April 19, 2009 at 7:42 am
Hi,
I'd like to help, but with the best will in the world: I can't make sense of your post.
Sorry - I know it's difficult if English isn't your first language.
Perhaps...
April 19, 2009 at 7:39 am
The answer is..."it depends!"
Sometimes, a cursor *is* the optimal solution. Not often, but it does happen.
If you tell us a little more background to your question, you may get...
April 19, 2009 at 7:36 am
RBarryYoung (4/19/2009)
Can you point me to an MS reference for that? I am getting conflicting info on that.
Kalen wrote a good article for SQL Mag - but that's subscriber...
April 19, 2009 at 7:03 am
Viewing 15 posts - 8,266 through 8,280 (of 8,416 total)