Viewing 15 posts - 151 through 165 (of 183 total)
Sorry for the delay.. due to company policy I can not provide you with the exact code we use. However, I wrote a real quick example that will work...
September 8, 2008 at 2:43 pm
I wrote a little .NET application that accepts a paramter message and sends emails with that subject/message. Then in Windows, Control Panel, Services.. you can set the REcovery option...
September 8, 2008 at 2:11 pm
The interesting thing for me so far is I do a backup first and then run all my maintenance. I understand your points. I have always been of...
August 29, 2008 at 12:50 pm
I asked a similar question and someone provided me with this article from this site. It has some good performance insights to consider when using pivot or case statements.
August 26, 2008 at 10:43 am
Not the best solution.. but you can always cast as an int data type if you don't need the precision of a decimal.
declare @d as decimal(9,3)
set @d = 339.55
select CAST(ROUND(@d,...
August 25, 2008 at 12:18 pm
I guess thats what I mean.. where in there? Right now I have to disable every topic i ever participated in. When I create a new post, I...
August 22, 2008 at 8:45 pm
You can install multiple databases, instances, drive locations, etc on all versions of SQL. Enterprise will get you additional features like advanced clustering (std provides basic clustering), data partioing,...
August 22, 2008 at 10:08 am
I agree with the last post, it really depends on your needs and the requirements of the software, etc. No one will be able to say do "X" wihtout...
August 22, 2008 at 9:59 am
HA! Short indeed.. but the post asked for a character based result. But koodos if the string data type is not really needed.
August 22, 2008 at 9:35 am
What version? I just ran the code to see what I get... and I have the same mis representation. My version is:
Microsoft SQL Server 2005 - 9.00.3042.00...
August 22, 2008 at 9:31 am
Someone may correct me, but I believe there is an issue with the print statement truncating. Check the length of the string to see if it is what you...
August 22, 2008 at 9:27 am
Nice.. I almost did it without the REPLICATE() function. Always felt it was more typing than needed. 🙂
August 21, 2008 at 4:00 pm
I'm interested to see the cause. I would have said the same thing about ANSI Padding. You could use the DATALENGTH() function instead which should get you what...
August 21, 2008 at 3:58 pm
How about this, not sure how short you want it
DECLARE @Int AS INT
SET @Int = 1
SELECT RIGHT(REPLICATE('0', 6) + CAST(@Int AS VARCHAR(6)), 6)
August 21, 2008 at 3:39 pm
Viewing 15 posts - 151 through 165 (of 183 total)