Viewing 15 posts - 406 through 420 (of 429 total)
opc.three (4/12/2013)
April 12, 2013 at 12:57 pm
Yeah, I boneheaded that one. It works now, and the file output is correct.
So, I took it and applied it to the table I want to write as a file,...
April 12, 2013 at 11:41 am
I'm running these:
set @sql='exec master..xp_cmdshell ''bcp " select * from (select '+@columns+') as t" queryout "'+ @filePath + @file_name+'" -w -t";" -T '''
exec(@sql)
set @sql='exec master..xp_cmdshell ''bcp " select ' +...
April 12, 2013 at 11:13 am
opc.three (4/12/2013)
April 12, 2013 at 10:11 am
opc.three (4/12/2013)
erikd (4/11/2013)
The other fields it's occurring in are first name, last name, and company name. Crud.
It should be a quick fix to the cursor declaration I showed above so...
April 12, 2013 at 8:38 am
nick.mcdermaid (4/12/2013)
April 12, 2013 at 7:57 am
The other fields it's occurring in are first name, last name, and company name. Crud.
April 11, 2013 at 10:13 pm
Yeah, I sort of forgot to mention that I numbered them in the order I use them. Heh.
Here's the scripted output you asked for.
https://www.dropbox.com/s/inhtv19uyo04xyk/erikd_tables.zip
I've also included the...
April 11, 2013 at 9:47 pm
opc.three (4/11/2013)
April 11, 2013 at 11:53 am
opc.three (4/11/2013)
ANSI = VARCHAR/CHAR
Unicode = NVARCHAR/NCHAR
In SQL Server, Unicode = UCS-2
Still not clear if all your columns are Unicode or whether you...
April 11, 2013 at 9:05 am
opc.three (4/11/2013)
April 11, 2013 at 8:24 am
Lynn Pettis (4/3/2013)
erikd (4/3/2013)
Lynn Pettis (4/3/2013)
And what happens if you make the phone number field varchar(8)?
Heh. Curiously, I can use Python to split the file up (opening the whole file...
April 3, 2013 at 4:06 pm
Lynn Pettis (4/3/2013)
And what happens if you make the phone number field varchar(8)?
Heh. Curiously, I can use Python to split the file up (opening the whole file with any of...
April 3, 2013 at 3:43 pm
Lynn Pettis (4/3/2013)
erikd (4/3/2013)
Lynn Pettis (4/3/2013)
erikd (4/3/2013)
Lynn Pettis (4/3/2013)
From your post I can't tell if you are using '\ n' (no space between the \ and n) as your row...
April 3, 2013 at 3:23 pm
Viewing 15 posts - 406 through 420 (of 429 total)