Link to home
Start Free TrialLog in
Avatar of Khopkins32
Khopkins32

asked on

Using BCP utility in SQL Server 2005 for generating reports

I am currently working with SQL Server 2005 and I want to use the BCP Utility to generate reporting information which is processed by another application. The output of the file takes the form of a pipe delimited csv file. The question that I have is how do I include the table columns as part of the report output? Is there a way to do this so that both the columns and the associated data are displayed in the .csv file?

i.e column1 | column2 | column3 | ....
     data1     | data2     | data3 | ...
ASKER CERTIFIED SOLUTION
Avatar of Mark Wills
Mark Wills
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Khopkins32
Khopkins32

ASKER

thanks for your help. It definitely led me to the right solution
Thank you, and trust it will all work well for you...