Viewing 15 posts - 5,821 through 5,835 (of 7,636 total)
Please provide your table definitions. Some test data, and desired output would be nice too.
See this link for some guidelines on how to do this: http://www.sqlservercentral.com/articles/Best+Practices/61537/
August 21, 2008 at 8:36 pm
dmc (8/21/2008)
Nice.. I almost did it without the REPLICATE() function. Always felt it was more typing than needed. 🙂
There is something wrong with a convenience function to make...
August 21, 2008 at 6:26 pm
I'm with Matt on this one. As far as I know, it should always ignore the trailing spaces. DATALENGTH is the solution that you want for this.
August 21, 2008 at 4:19 pm
For more on this and some really good explanations of how it all works and what options are avaialable to you, look in BOL (Book OnLine) under "Concurrency Control".
August 21, 2008 at 4:16 pm
SQL already handles most of this for you. You shouldn't try to reinvent what SQL is already better at than almost any custom design could be.
All you have to...
August 21, 2008 at 4:14 pm
Even shorter:
DECLARE @Int AS INT
SET @Int = 1
SELECT RIGHT('00000' + CAST(@Int AS VARCHAR(6)), 6)
August 21, 2008 at 3:55 pm
This query/view provides that information and much more as well: http://www.sqlservercentral.com/scripts/tables/62545/
August 21, 2008 at 11:54 am
matt stockham (8/20/2008)
August 21, 2008 at 11:41 am
Also, there is a current line counter in the status bar.
August 21, 2008 at 11:33 am
Adrian Nichols (8/21/2008)
If you're going to exaggerate, at least do it in style... "Today, I'm going to give 325%, that's right three and a quarter times that of everyone else!"
Technically,...
August 21, 2008 at 10:28 am
Chandru: can you explain how the code you are using meets your needs? It could be of help to others in the future.
August 21, 2008 at 8:06 am
Seggerman (8/21/2008)
I found that the rand() function would repeat numbers, defeating the purpose of...
August 21, 2008 at 7:59 am
I think your response got lost, Jeff.
August 21, 2008 at 5:56 am
The performance of (+) is fine.
Why don't you want to use it?
August 20, 2008 at 10:32 pm
Viewing 15 posts - 5,821 through 5,835 (of 7,636 total)