Viewing 15 posts - 47,191 through 47,205 (of 59,064 total)
If the only purpose is to find "gaps" in sequential numbers, I've not found anything faster than the following... first, a little bit of test data...
--===== Create and populate a...
November 14, 2008 at 6:12 pm
ang (11/14/2008)
DECLARE @ServerName nvarchar(30)
DECLARE @sql nvarchar(100)
select @ServerName = '[server-a\testdb]'
set @sql = @servername + '.master.dbo.xp_fixeddrives'
exec(@sql)
Thank you...
November 14, 2008 at 5:01 pm
Lynn Pettis (11/14/2008)
Hang on!! How can I get in on this and sell tickets?? I'll even give 75% of the proceeds to SSC!
Heh... you won't have 75% left because I'm...
November 14, 2008 at 4:42 pm
Lynn Pettis (11/14/2008)
Just gotta know, has anyone every called you an anti-rbar fanatic? This seems to be the main area you really become "excited" about. And NOT that...
November 14, 2008 at 4:41 pm
K. Brian Kelley (11/14/2008)
November 14, 2008 at 3:52 pm
Heh... sorry... wrong graphic... SQL Server 2k5 won't even show the ACTUAL execution plan for anything inside a WHILE loop and the estimated execution plan shows everything with a cost...
November 14, 2008 at 2:36 pm
Oh yeah... here's the proof that the Actual Execution Plan for the WHILE loop contains costs for only 1 row or, in this case, one character... that's what the wicked...
November 14, 2008 at 2:26 pm
Also, I never suggested making a Tally table on the fly... a permanent Tally table is really the way to go, in most cases. Exception to that rule is...
November 14, 2008 at 2:18 pm
Ok... here's the code I used to compare the WHILE loop solution you came up with against the Tally table version I posted. I had to increase the size...
November 14, 2008 at 1:59 pm
Just to be sure, you're calling the WHILE loop the "procedural" code, right? If you're giving the "win" to the WHILE loop based on what you found in the...
November 14, 2008 at 1:15 pm
Heh... you don't actually believe the costs in the execution plan, do you? The execution plan for WHILE loops and other forms of RBAR are only for the FIRST...
November 14, 2008 at 1:01 pm
I believe I'd put a default of ' ' on the nullable column... that way, if an explicit NULL is inserted on the column, it will be NULL... if the...
November 14, 2008 at 11:55 am
BWAA-HAAA! CBAC would work! Maybe "Character Reading And Processing" fits better. 😉
November 14, 2008 at 11:48 am
Dooza (11/14/2008)
Invalid object name 'Master.dbo.SysColumns'.
I think my master database is screwed 🙁
We did have some problems a few weeks back with a maintenance...
November 14, 2008 at 11:43 am
Viewing 15 posts - 47,191 through 47,205 (of 59,064 total)