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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

osql statment and column_width

Status
Not open for further replies.

md67

Programmer
Nov 20, 2001
15
US
I using an osql statement below and want my output file to have a width of 642. Output is line wrapping and I'm not sure what I'm doing wrong. Any suggestions?

declare @cmd as varchar(255)
declare @cmdshell_result as int
set @cmd = 'osql -Q"sp_mcc_il_cigs" -E -d"Order" -W642 -n -oc:\ILReturn.txt'
exec @cmdshell_result = master..xp_cmdshell @cmd,no_output
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top