Viewing 15 posts - 50,731 through 50,745 (of 59,091 total)
Outstanding, Sergiy... you've reminded me of a couple of questions that I've always wanted to ask about such multi-purpose (Numbers/Tally + Date table + other) tables... guess now's as good...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 6, 2008 at 6:38 pm
Well, at least it has some documentation to let you know what's going on... that's a start.
You already know the bad news... this code has joins of concatenated address columns...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 6, 2008 at 6:14 pm
wdillon (5/6/2008)
--Jeff Moden
Change is inevitable... Change for the better is not.
May 6, 2008 at 5:41 pm
Matt Miller (5/6/2008)
Steve's had a buzzer implanted on Jeff, that goes off each time a new post is added...:)
So THAT's what it is! Here I was trying to cut...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 6, 2008 at 5:32 pm
Thanks for the info, guys! 🙂
--Jeff Moden
Change is inevitable... Change for the better is not.
May 6, 2008 at 4:43 pm
matt6749 (5/6/2008)
DECLARE @sql nvarchar(4000)
SET @sql = 'SELECT ID, Name, Address
FROM
(SELECT ID, Name, Address,
ROW_NUMBER()...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 6, 2008 at 4:41 pm
Ok... I'll try a third and final time... I'm trying to help you do this using xp_CmdShell and Bulk Insert, as you requested. I asked you a couple of...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 6, 2008 at 9:09 am
Ummm... you certainly don't need a cursor to transpose a table. Cross-tabs, dynamic cross-tabs, and the occasional use of the Pivot function do the job in a nice set...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 6, 2008 at 9:03 am
Holy Moly... that's one heck of a lot of analysis. Did they actually get anything useful out of all that?
--Jeff Moden
Change is inevitable... Change for the better is not.
May 6, 2008 at 8:22 am
dfalso (5/6/2008)
I'll attempt to give an example to illustrate (btw, this also illustrates a candidate for an appropriate use of cursors):
Think...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 6, 2008 at 8:18 am
GSquared (5/6/2008)
--Jeff Moden
Change is inevitable... Change for the better is not.
May 6, 2008 at 7:31 am
Now, you know why I've chosen the Avatar that I have... 🙂
Cursors = RBAR
--Jeff Moden
Change is inevitable... Change for the better is not.
May 6, 2008 at 6:53 am
The reason why the variable had the value subtracted twice is to make it work properly... you wanted the running total to NOT include the current value and that's one...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 6, 2008 at 6:24 am
Kent Waldrop (5/5/2008)
Hmm 99.99%. Maybe as far as cursors go you "can't loathe them enough."
Heh... to be clear, I've never written a cursor except to show how slow they...
--Jeff Moden
Change is inevitable... Change for the better is not.
May 6, 2008 at 6:15 am
Sorry... didn't know that...
Still, I posted some questions on that other thread because I need more info to help you. Any answers on those?
--Jeff Moden
Change is inevitable... Change for the better is not.
May 6, 2008 at 6:12 am
Viewing 15 posts - 50,731 through 50,745 (of 59,091 total)