Viewing 10 posts - 1 through 10 (of 10 total)
I wanted to add the @ symbol to dynamically create code like
set @strSQL = 'DECLARE @' + @VARIABLE + ' varchar(50)'
exec (@strSQL)
to create :
DECLARE @JULY varchar(50)
dynamically
This appears to work....
November 7, 2003 at 5:43 am
Why?
The same code is run again and again but for
different months.
At the top of the code I set the month
and can thus run the same code easily for the appropriate...
November 6, 2003 at 5:53 am
char(0) is a NULL.
If you go to:
you can find out what all these characters are.
October 28, 2003 at 1:40 am
duplicate deleted
Edited by - zhesley on 10/28/2003 01:40:33 AM
October 28, 2003 at 1:40 am
deleted duplicate
Edited by - zhesley on 10/27/2003 08:42:10 AM
October 27, 2003 at 8:41 am
deleted duplicate
Edited by - zhesley on 10/27/2003 08:40:30 AM
October 27, 2003 at 8:39 am
I am not 100% sure but perhaps
when DTS exports numbers it adds two extra
for a potential negative sign of the number i.e. '-'
and another for a potential decimal point i.e....
October 27, 2003 at 8:39 am
Deleted duplicate post.
Edited by - zhesley on 10/27/2003 05:30:15 AM
October 27, 2003 at 5:29 am
I found the ASCII command useful when I had a similar problem. See BOL:
ASCII, code converted to a character
BOL gives some code to loop through a text string and...
October 27, 2003 at 5:28 am
Installed a different Service Pack and bcp works fine now.
Thanks
Zoltan
September 12, 2003 at 8:20 am
Viewing 10 posts - 1 through 10 (of 10 total)