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!

Query formatting to a text file

Status
Not open for further replies.

billum

Programmer
Feb 4, 2003
31
US
Hi,
Iam taking the output of a query to a text file.I used bcp ...queryout filename for that.This is working fine
In the text file I need to get the query result with some heading and footers like :

command1
row1
row2
---
---
command2
command3
command4

Actually this text file later need to be used as a command file for another application
How can this be done ? Any ideas?
Thanks
Bill
 
hello- i am having this same issue, have you found a fix? i have been working on this formatting issue forever.

thanks in advance,
rebecca
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top