Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SQL File Output

Status
Not open for further replies.

SQLMeToo

Technical User
Apr 10, 2000
12
AU
I am using the following statement to output a file:<br><br>declare @str varchar(255)<br>select @str = 'isql -Q &quot;select * from &lt;tablename&gt;&quot; -E &gt; c:\file.txt'<br>exec master..xp_cmdshell @str<br><br>Does anyone know how to set the delimeter for this file,<br>at the moment I am getting fixed widths within the output<br>file. DB=SQLServer 7 OS=WinNT 4.0 SP 6<br>Thanks - Yorke<br>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top