I've created a DTS package to export a query from SQL. I need to have the file comma or pipe delimited. The file is too large to manually delimit.
Thanks for any help.
Why use dts? It's a single sql statement to do it via bcp
exec master..xp_cmdshell 'bcp "myquery" out c:\myfile.txt -c -t|'
see bcp in bol.
======================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.