Viewing 15 posts - 31 through 45 (of 216 total)
I'll second everyone else's comments: fascinating stuff, Paul. As I was saying, my "problem" is resolved, but I was really interested to understand why SQL was behaving that...
June 24, 2013 at 12:31 pm
You might check with Paul Randal's company, SQL Skills. If they can't help you, I'm sure they could recommend someone.
June 23, 2013 at 12:35 am
Shaira (6/21/2013)
June 23, 2013 at 12:28 am
spaghettidba (6/21/2013)
The DELETE plan is way different. It's a parallel plan, while the MERGE plan is serial. There's a hash match and... it's...
June 21, 2013 at 10:09 am
Hmmm ... if I understand you correctly, this problem severely limits the usefulness of MERGE.
The WHEN NOT MATCHED clause is required for INSERTs and DELETEs, but getting all...
June 21, 2013 at 9:59 am
Oh, I am perfectly content with your help. I was hoping one of these people might subscribe to Google alerts. 🙂 I am pretty sure Adam Machanic does,...
June 21, 2013 at 9:38 am
Nothing? :w00t: I was sure that one of those brilliant SQL veterans like Gail Shaw, Jeff Moden, Grant Fritchey, Steve Jones or Adam Machanic would have some insight...
June 21, 2013 at 9:03 am
Let me see if I understand the problem correctly. You have an overnight ETL process which takes 9 million + records from Table A and then Bulk Inserts them...
June 20, 2013 at 5:30 pm
ScottPletcher (2/18/2013)
In implicit transaction mode, where each...
February 18, 2013 at 5:07 pm
OK. My problem is that any constraint violation within a TRY CATCH block within a trigger makes the transaction uncommittable (whether explicit or implicit).
At that point, no matter what...
February 18, 2013 at 4:06 pm
These are pretty cool!
Also, it is clear that you have been doing this way too long. 😎
September 24, 2012 at 2:22 pm
Yes! That would have been great. I don't think you even need the parentheses. That answer would be nigh unbeatable. (Too bad it doesn't work. :hehe:)
September 24, 2012 at 1:33 pm
Well, let's be charitable and assume that he is suitably embarrassed by his behavior.
September 20, 2012 at 3:45 pm
The only other answer I could come up with was
SELECT DB_ID()
which will return '1' if you are in the Master database (which is usually the default).
This, of course, is...
September 20, 2012 at 3:00 pm
True, and the competition on SQLAuthority shows a SELECT statement in the sample, but I imagine that something different might be accepted, if it were creative. At least it...
September 20, 2012 at 1:13 pm
Viewing 15 posts - 31 through 45 (of 216 total)