Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
bill_
Starting Member
38 Posts |
Posted - 2015-03-24 : 14:11:13
|
Trying to export query results to a pipe delimited text file but not getting delimiters.These are the steps I'm taking.toolsoptionsquery resultsql serverresults to textcustom delimiter,|right click on query paneresults to fileexecute querymake file nameA text file's made but with no delimiter whether I pick custom (|) or comma.How do you get this to work? |
|
tkizer
Almighty SQL Goddess
38200 Posts |
Posted - 2015-03-24 : 14:13:19
|
I just use bcp: bcp.exe "select * from db1.dbo.table1" queryout c:\temp\queryoutput.txt -Sserver1\instance1 -T -c -t| -r\r\nTara KizerSQL Server MVP since 2007http://weblogs.sqlteam.com/tarad/ |
|
|
|
|
|