bcp does not use fixed width columns.Standard column and row terminators for bcp are newline and tab (\n,\t),So You will have to watch out if the text columns contain the colum/row separators.use northwindgocreate table q(col1 int, col2 text)insert qselect 23,'my text is here... ... more text 'union allselect 42,'another chunk of text... .... ..... .....'-- bcp outexec master..xp_cmdshell N'bcp northwind..q out "C:\q.txt" -c -T -r "||"',no_outputtruncate table northwind..q-- bcp inexec master..xp_cmdshell N'bcp northwind..q in "C:\q.txt" -c -T -r "||"',no_output-- show the fileexec master..xp_cmdshell N'type "C:\q.txt"'-- show the tableselect * from northwind..qdrop table northwind..q
rockmoose