Viewing 15 posts - 58,621 through 58,635 (of 59,063 total)
"The difficult can be done immediately... the impossible takes slightly longer."
This will work but the creation of a real "Numbers" table would be better as it would be more predictable...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 31, 2005 at 6:16 am
My mistake... I misread BOL... the NVARCHAR(4000) is for the command line INPUT... you can't get more than 255 characters in the OUPUT... so, the following will work just fine...
--Jeff Moden Change is inevitable... Change for the better is not.
RBAR is pronounced "ree-bar" and is a "Modenism" for Row-By-Agonizing-Row.
First step towards the paradigm shift of writing Set Based code:
________Stop thinking about what you want to do to a ROW... think, instead, of what you want to do to a COLUMN.
Helpful Links:
How to post code problems
How to Post Performance Problems
Create a Tally Function (fnTally)
October 31, 2005 at 5:52 am
You just don't need to write a VB script to count the number of files in a directory from T-SQL. In fact, with a little clever CMD line code in...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 30, 2005 at 8:37 am
Just adding my two cents...
Use STR(n,l,d) for numerics on this...
n = number to convert
l = final length of all characters (defaults to 10)
d = number of decimal places (defaults to...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 30, 2005 at 8:07 am
I share David Burrow's opinion of this series of articles. Very well written with a great amount of understanding of what's what in the world of employment both from the employee...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 25, 2005 at 5:52 am
The computed sum column example a couple of postings above may give an incorrect sort order depending on the data.
The ORDER BY CASE example works wonderfully for 3 columns. It does...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 22, 2005 at 11:32 pm
I can't see the images...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 19, 2005 at 6:52 am
Sounds more like homework than a request from the vendor...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 16, 2005 at 7:59 pm
Thank you Carl... that's just what the Dr. ordered.
--Jeff Moden
Change is inevitable... Change for the better is not.
October 15, 2005 at 9:51 am
See what I mean?
--Jeff Moden
Change is inevitable... Change for the better is not.
October 11, 2005 at 1:40 am
Actualy, if you do a search for "DELETE DUPLICATES", you come up with just a couple of articles which use cursors and group bys and adding columns and using MAX/GROUP...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 10, 2005 at 6:54 am
Vishal,
If your field list looks like this...
field value: Oracle,VB,ASP,PHP
field value: Java,VB,PHP,MYSql
field value: Java,VB,Oracle,Asp.net,MSSQL,Asp
field value: Windows,HASP,Excel,VBA
Consider the following code to keep from listing the 4rh line when looking for ASP and...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 9, 2005 at 9:22 pm
And, you might want to consider using the user name in the 3 part naming convention as part of best practices...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 9, 2005 at 8:32 pm
With 7 million rows of data, I'm thinking that you'll get a recompile on run anyway just due to the number of changes in the data. So, I gotta ask,...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 9, 2005 at 8:30 pm
Chris,
Likewise it's interesting to think that databases are not used for performance... whatever. The real key is that the inclusion of the NOLOCKs greatly reduced the number of deadlocks in...
--Jeff Moden
Change is inevitable... Change for the better is not.
October 6, 2005 at 10:46 pm
Viewing 15 posts - 58,621 through 58,635 (of 59,063 total)