Comments posted to this topic are about the item Overcome BCP limitations for output to CSV file
David A. Long (9/24/2007)
Comments posted to this topic are about the item
Here is an easier method to get headers in output file
bcp "(Select 'PIN','Name') UNION ALL (Select Convert(Varchar,PIN),FName From GangadharG.dbo.CustInfo)" queryout out.txt -U sa -P welcome -c -t "|"
Viewing 2 posts - 1 through 1 (of 1 total)