Viewing 15 posts - 51,796 through 51,810 (of 59,072 total)
Temp table and While loop is going to be almost as slow as a cursor when it comes to RBAR. The only advantage is the lack of locking and...
March 13, 2008 at 8:08 pm
Matt Miller (3/13/2008)
Jeff Moden (3/13/2008)
March 13, 2008 at 7:59 pm
You're not trying to return the output to the screen are you? And, according to Matt's fine testing, ID<'X' is the fastest. I don't think a NCI will...
March 13, 2008 at 7:53 pm
cziebert (3/13/2008)
Thanks Jeff, appreciate the help.Sincerely,
Z
And I appreciate the feedback. Thanks, Z.
March 13, 2008 at 7:49 pm
Grant Fritchey (3/13/2008)
That's why they call us glowy bubble-heads....
Heh... I knew I liked you for some reason... I was the Sr. Ping Jockey forward of frame 52 on...
March 13, 2008 at 7:41 pm
Matt Miller (3/13/2008)
... military service is one of the LEAST pathetic reason.
I absolutely agree!
March 13, 2008 at 7:38 pm
How about an indexed view? Possibly a sorted index view. Yeah, I know, might require a TOP with an ORDER BY in a view which is normally a...
March 13, 2008 at 7:29 pm
BCP or a Proc run by CmdShell with a BULK INSERT in it. Both can be scheduled by the Windows Task Scheduler.
March 13, 2008 at 11:03 am
p.s. A thousand rows isn't really enough to show the timing difference on something like this. Try it on a million rows more than once.
March 13, 2008 at 10:56 am
If your numbers look like "A123456" and "X123457" and you want just the "A" rows AND you want it to scream...
WHERE LEFT(somecol,1) = 'A'
Substring takes a comparitively long time compared...
March 13, 2008 at 10:54 am
Try this...
SELECT d.Csv
FROM (
SELECT 'client_num,client_name,matter_num,matter_name' AS Csv,1 AS SortOrder
...
March 13, 2008 at 10:42 am
alorenzini (3/13/2008)
02/29/2008 11:59:59 PM
So when I run this:
SET @MonthStartDt = DATEADD(month, DATEDIFF(month, 0, @StartDate), 0)
Set @MonthEndDt = DATEADD(month,...
March 13, 2008 at 9:55 am
Heh... it's 'cause I copied directly from your post 😉
March 13, 2008 at 9:51 am
Oh boy! Someone said "Pork chop"! Let me get my magic sling... 😀
March 13, 2008 at 9:50 am
Heh... it's what separates all these "Hi, I'm new to DBA" people from the real DBA's.
March 13, 2008 at 9:48 am
Viewing 15 posts - 51,796 through 51,810 (of 59,072 total)