Viewing 15 posts - 1,741 through 1,755 (of 4,080 total)
The main reason why I try to avoid SQL_VARIANT is the need to cast it again once you need to use that column in a join condition.
Fair enough, Lutz. ...
__________________________________________________
Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills
March 24, 2010 at 7:12 pm
OKAY... once more from the top. In the example below, there are either one or two rows in the source table, but each have the same GUID...
__________________________________________________
Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills
March 24, 2010 at 6:45 pm
MUCH clearer, to me at least. I'm glad you found a workable solution. 🙂
__________________________________________________
Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills
March 24, 2010 at 6:24 pm
There is nothing wrong with the NOT EXISTS syntax that the LEFT JOIN is going to cure. That's just another technique for doing the same non-existence test....
__________________________________________________
Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills
March 24, 2010 at 6:02 pm
Eric, in the absence of sample data, I'm going to hazard an opinion. You have a join at some point that is causing multiple rows with the same...
__________________________________________________
Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills
March 24, 2010 at 5:36 pm
Yes you are doing something wrong. You are failing to punctuate. This makes your questions and comments all run together and is discouraging to people who are...
__________________________________________________
Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills
March 24, 2010 at 5:26 pm
Here it is. Like the pivot, it avoids the index seek required by the NOT EXISTS. The execution plans appear to be close, if...
__________________________________________________
Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills
March 24, 2010 at 12:35 pm
Did you not even look at my example casting an integer as SQL_VARIANT datatype?
__________________________________________________
Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills
March 24, 2010 at 12:22 pm
This one is more basic. It only shows the list of patients. However it produces a nice execution plan if we can assume that there...
__________________________________________________
Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills
March 24, 2010 at 10:06 am
Just to be cruel... go into query options (on someone else's machine) and change the batch separator from "GO" to "SELECT".
__________________________________________________
Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills
March 24, 2010 at 7:02 am
Latin1_General_CI_AS is an example of a Windows collation.
SQL_Latin1_General_CP1_CI_AS is a SQL collation.
Latin1_General_BIN is a binary code point collation.
This is exactly what I needed to know. Thanks for bringing...
__________________________________________________
Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills
March 24, 2010 at 6:32 am
GilaMonster (3/23/2010)
Changing the subject (if there is one), any art critics here?
The world is grey, the mountains old.
The forge's fire is ashen-cold.
No harp is rung, no hammer falls.
The darkness dwells...
__________________________________________________
Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills
March 24, 2010 at 6:23 am
We still don't know what results you are expecting, so we are unlikely to be of any more assistance. At this point, I don't even know why you...
__________________________________________________
Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills
March 24, 2010 at 6:07 am
Paul, I have to ask just when is Windows collation used?
I would assume that since all the work is being done inside SQL that some default SQL...
__________________________________________________
Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills
March 24, 2010 at 6:06 am
RBarryYoung (3/23/2010)
The Dixie Flatline (3/23/2010)
__________________________________________________
Against stupidity the gods themselves contend in vain. -- Friedrich Schiller
Stop, children, what's that sound? Everybody look what's going down. -- Stephen Stills
March 24, 2010 at 6:00 am
Viewing 15 posts - 1,741 through 1,755 (of 4,080 total)