Viewing 15 posts - 45,976 through 45,990 (of 59,095 total)
Lookup DBCC SHOWCONTIG in Books Online. Example "E" is what you're looking for if you don't mind using cursors. I personally won't use a cursor (including the monster...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 13, 2009 at 9:12 am
...or just dump it into some dynamic SQL. Or, if the tables change every month, have some dynamic SQL build a proc for you. You can even build...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 13, 2009 at 9:07 am
The RAISERROR with the NOWAIT clause is certainly a way to do it... and then, you have nothing but something printed on the screen. No way to do any...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 13, 2009 at 8:50 am
bdewulf (1/13/2009)
Just to clarify my original post....
--Jeff Moden
Change is inevitable... Change for the better is not.
January 13, 2009 at 8:39 am
Grant Fritchey (1/13/2009)
Jeff Moden (1/13/2009)
--Jeff Moden
Change is inevitable... Change for the better is not.
January 13, 2009 at 8:33 am
Mark,
VERY clever code... I obviously never thought of using PatIndex and a variable for the first character of a range... And, it's about twice as fast as the Tally table...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 13, 2009 at 7:07 am
Mark, if you do a final replace of ")" with "& # 0 4 1 ;" (without the spaces), then your code wil show correctly without all those...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 13, 2009 at 6:45 am
James Stover (1/10/2009)
--Jeff Moden
Change is inevitable... Change for the better is not.
January 13, 2009 at 6:40 am
Steve Jones - Editor (1/11/2009)
--Jeff Moden
Change is inevitable... Change for the better is not.
January 13, 2009 at 6:25 am
How odd... here we're talking about portability between releases of SQL Server... the ANSI-only folks would have a ball with this. Of course, then I'd have to launch some...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 13, 2009 at 6:13 am
Grant Fritchey (1/13/2009)
Jack Corbett (1/12/2009)
Sergiy (5/28/2007)
If you don't specify the version that means it must work on EVERY version, not only the one you know.
Of course these means that CTE's...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 13, 2009 at 6:09 am
GilaMonster (1/12/2009)
--Jeff Moden
Change is inevitable... Change for the better is not.
January 12, 2009 at 1:28 pm
Steve Jones - Editor (1/12/2009)
case
when substring( namefield, 1, charindex(' ', namefield) = 'Mr'
then prefix = 'Mr'
when substring( namefield, 1,...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 12, 2009 at 1:26 pm
GSquared (1/12/2009)
Agree with you on most points.I like the Inner Join syntax. Makes it easier for me to read (not for you, but it does for me).
That would...
--Jeff Moden
Change is inevitable... Change for the better is not.
January 12, 2009 at 1:14 pm
Sergei Ely (1/12/2009)
John,The code worked perfectly. 😀 Thanks again.
Sergei
Heh... actually, it's "Jeff" but I appreciate the feedback anyway. Thanks, Sergei. 🙂
--Jeff Moden
Change is inevitable... Change for the better is not.
January 12, 2009 at 12:48 pm
Viewing 15 posts - 45,976 through 45,990 (of 59,095 total)