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 "|"
-GGSanthosh