Viewing 15 posts - 751 through 765 (of 8,416 total)
February 16, 2012 at 8:21 am
sqlfriends (2/15/2012)
Does the first .elAttendanceAreaID, you dropped O, and second one you missed n.
Ha! Weird typo - not sure how that happened, but I have fixed the post now.
I...
February 15, 2012 at 5:54 pm
bdba (2/15/2012)
February 15, 2012 at 5:50 pm
Koen Verbeeck (2/14/2012)
The semicolon is not yet obligated, except when using the WITH clause.
MERGE (the statement, not the join hint!) is required to be terminated with a semicolon.
February 15, 2012 at 5:15 am
The updates probably could be compacted quite a bit, but I don't have time right now for a complete rewrite. One thing I would recommend is that you dump...
February 14, 2012 at 2:47 am
And another:
DECLARE @data TABLE
(
Code integer NULL,
Name character(1) NULL,
Country nvarchar(50) NULL
);
INSERT @data
...
February 13, 2012 at 10:41 pm
Another option:
DECLARE @data TABLE
(
Code integer NULL,
Name character(1) NULL,
Country nvarchar(50) NULL
);
INSERT @data
...
February 13, 2012 at 10:26 pm
kschwid (2/13/2012)
February 13, 2012 at 9:55 pm
GSquared (2/13/2012)
February 13, 2012 at 9:49 pm
Jeff Moden (2/13/2012)
Nicely done, Paul. Will that preserve keys, constraints, and indexes? And, yes, I realize the TRUNCATE won't work if FK's are present.
One of the conditions for...
February 13, 2012 at 9:41 pm
tripri (2/13/2012)
February 13, 2012 at 8:39 pm
SELECT
ItemNum,
Category =
'Group' + CHAR(64 +
...
February 13, 2012 at 8:34 pm
guerillaunit (2/13/2012)
What's the most efficient way to get rid of the extra data?
You can make the process more efficient still by using minimally-logged operations rather than the fully-logged DELETE statement:
CREATE...
February 13, 2012 at 8:09 pm
Viewing 15 posts - 751 through 765 (of 8,416 total)