Viewing 15 posts - 211 through 225 (of 458 total)
dwain.c (5/19/2015)
May 20, 2015 at 12:20 am
That was a question, not a conclusion. Notice the question mark at the end of the first sentence. The second was simply a restatement of what I'm trying to do,...
May 19, 2015 at 2:43 pm
dwain.c (5/18/2015)
SELECT *
INTO #Test
FROM (Values
(1, 'A'),
(1, 'B'),
(1, 'C'),
(1, 'D'),
(1, 'E'),
(2, 'A'),
(2, 'C'),
(2, 'D'),
(2, 'E'),
(3, 'A'),
(3, 'B'),
(3, 'C'),
(3, 'F'),
(4, 'A'),
(4, 'B'),
(4, 'D'),
(4, 'F'),
(4, 'G'))x(id, value);
SELECT id
...
May 19, 2015 at 12:05 am
Got it - fat-fingered an edit when I copied out some parts of the query for my original post. Works great - many thanks, Luis. Complex execution plan, that's going...
May 18, 2015 at 12:47 pm
Well, here's the actual query, if you want to take a stab at it, but I haven't assembled all the necessary TSQL to give you the entire data environment on...
May 18, 2015 at 11:57 am
That looks promising, but I'm getting an error:
Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when...
May 18, 2015 at 11:46 am
Thank you everyone for the input and suggestions. I've decided to go with a trigger, largely because everything is in one place. The check constraint option has the disadvantage of...
December 15, 2014 at 6:58 am
Emil Bialobrzeski (12/11/2014)
ALTER TABLE Test ADD CONSTRAINT CK_Test CHECK (dbo.CKTest(ID, Letter, Number, OptionalLetter) = 0)
EDIT:
Use the code...
December 11, 2014 at 8:18 am
Emil Bialobrzeski (12/11/2014)
December 11, 2014 at 8:03 am
Emil Bialobrzeski (12/11/2014)
HiCheck constraint with user defined function should work as well
Hm, that's an interesting thought, but how would you code it? The function would need the infro from the...
December 11, 2014 at 7:44 am
Brandie Tarvin (12/11/2014)
December 11, 2014 at 7:27 am
Brandie Tarvin (12/11/2014)
pdanes (12/11/2014)
Brandie Tarvin (12/11/2014)
What is the business need to use a schema object to prevent this?
I didn't specify schema, and in fact, have no idea how a schema...
December 11, 2014 at 7:13 am
Brandie Tarvin (12/11/2014)
What is the business need to use a schema object to prevent this?
I didn't specify schema, and in fact, have no idea how a schema could be used...
December 11, 2014 at 6:45 am
Thanks, but neither of those queries worked as written - they have scope errors with the aliases. I'll take a look at them later today and see if I can...
November 13, 2014 at 6:46 am
Excellent script - many thanks. Already found and fixed some indexing screw-ups in my databases, just on the first run-through. This is something I will be studying in detail, and...
October 30, 2014 at 8:28 am
Viewing 15 posts - 211 through 225 (of 458 total)