Viewing 15 posts - 56,371 through 56,385 (of 59,072 total)
How quickly CTE's have made folks forget all about Temp Tables, Table Variables, and Views ![]()
May 21, 2007 at 8:02 pm
If that's all you intend to use the Calendar table for, you can use the following along with a simple Holiday table for the same thing...
SELECT
(DATEDIFF(dd, @StartDate,...
May 21, 2007 at 7:50 pm
>>"scoop a few, ah, droppings, then write an editorial"
BWAAAA-HAAAAA-HAAAAA!!!! Oh, I laughed out loud! Almost sounds like a prerequisite! Way too funny! Thanks for the great laugh, Steve!
May 21, 2007 at 7:44 pm
Sometimes, ya just can't see the forest for the trees
... of course a separate table would do... if I save the SPID...
May 21, 2007 at 7:36 pm
Heh... guess he got THAT answer ![]()
May 21, 2007 at 7:32 pm
Good choice... BCP was definitely the way to go especially since you didn't want header info. Nice job and thanks for the feedback.
May 21, 2007 at 7:28 pm
Here's all the things that need to be true to do non-logged bulk inserts from BOL...
May 20, 2007 at 4:57 pm
Cool... Thanks again, Andrew.
Anyone else? It would be really cool if this could be done through T-SQL without modifying SysProcesses directly... don't think it can be done but its worth asking...
May 20, 2007 at 4:51 pm
Daaaang... thanks, David
Coming from the likes of you, that's quite the compliment.
May 20, 2007 at 4:46 pm
Heh... and I was too sleepy this morning... I shouldn't post when I'm pooped... ![]()
It is still a bit of a half cross...
May 19, 2007 at 6:06 pm
Ok... I was right about the cross-join... and it took more than 3 minutes to exec on 100,000 rows.
And when I change that snippet in the function to have a...
May 19, 2007 at 10:54 am
Sure thing, JH... I don't like the looks of that unconstrained cross-join in the function, though... I think it's going to gen 65,536 internal rows every time it executes...
I'll...
May 19, 2007 at 10:41 am
I agree... so far as I'm concerned, writing directly to SysProcesses is not an option but a sub for OSQL may be what I have to find (or build). I...
May 19, 2007 at 9:15 am
Hey, Richard... just to let you know... I can normally beat most looping functions by using a Tally table... but not this one (least ways, not so far
May 18, 2007 at 9:20 pm
Thanks for the response, Andrew. Yeah... kinda missing what I'm asking for. OSQL doesn't have a "connection string" nor a paramter for it, but the security folks want me to...
May 18, 2007 at 9:17 pm
Viewing 15 posts - 56,371 through 56,385 (of 59,072 total)