Viewing 15 posts - 40,726 through 40,740 (of 59,102 total)
I agree that a lot of things can be done very quickly in T-SQL... just not with cursors. 😉
--Jeff Moden
Change is inevitable... Change for the better is not.
December 10, 2009 at 8:57 pm
Save the output of your query into a table with the extra columns you need. Then, use my query to UPDATE the table.
--Jeff Moden
Change is inevitable... Change for the better is not.
December 10, 2009 at 8:55 pm
Ah, dang it. Sometimes I hate BOL... the STR function that I looked at to get the return type was for SQL Server Mobile. Why on Earth the...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 10, 2009 at 7:47 pm
support 23368 (12/10/2009)
no need to change the CSV file but looking at the query it appears that it may work slower.
Heh... slower than what? The 2 days it took...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 10, 2009 at 7:40 pm
doran_doran (12/10/2009)
Little Lost here..
BWAA-HAAA!!! Apparently, so I am! :blush: My response was supposed to go on another post that I was looking at at almost the same time.
--Jeff Moden
Change is inevitable... Change for the better is not.
December 10, 2009 at 7:28 pm
clive-421796 (12/10/2009)
WHERE
tbl.YourDateColumn >= @StartDate
AND tbl.YourDateColumn < @EndDate
I prefer to use:
WHERE
tbl.YourDateColumn between @StartDate AND @EndDate.
-------------------------
Have...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 10, 2009 at 7:05 pm
Here's a bit of code for SQL Server 2000 that's equivalent to the 2k5 code I "cheated" with.:-D It uses "derived tables" instead of CTE's. Both are sometimes...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 10, 2009 at 6:50 pm
Thanks, Anitha :blush:
--Jeff Moden
Change is inevitable... Change for the better is not.
December 10, 2009 at 6:34 pm
Heh... try hell! I did cheat! I just got caught. :blush:
--Jeff Moden
Change is inevitable... Change for the better is not.
December 10, 2009 at 6:29 pm
clive-421796 (12/10/2009)
version 14 (latest) is 37 MB. So i looked for winzip 9 (about 4MB),...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 10, 2009 at 6:15 pm
Ok... here you go. You need to study this, Anitha, because every string like this follows a similar pattern of FieldName:fieldvalue fieldterminator. You should be able to do...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 10, 2009 at 5:58 pm
Ah... now I see what you're trying to do.
--Jeff Moden
Change is inevitable... Change for the better is not.
December 10, 2009 at 3:56 pm
Lynn Pettis (12/10/2009)
Jeff Moden (12/10/2009)
clive-421796 (12/10/2009)
--Jeff Moden
Change is inevitable... Change for the better is not.
December 10, 2009 at 3:28 pm
clive-421796 (12/10/2009)
--Jeff Moden
Change is inevitable... Change for the better is not.
December 10, 2009 at 3:21 pm
n.heyen (12/10/2009)
When I copy and paste and run this code, I get errors. Is this SQL2000 code? Or does it need SQL2005?
The errors are:
Msg 156, Level...
--Jeff Moden
Change is inevitable... Change for the better is not.
December 10, 2009 at 2:51 pm
Viewing 15 posts - 40,726 through 40,740 (of 59,102 total)