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

Exporting a view using bcp

Status
Not open for further replies.

shep6

Programmer
May 4, 2001
38
0
0
GB
I'm pretty new to sqlserver....Does anyone know how to include the field headers when I export a view using bcp, I have managed to export the view (as a text file), but need to include the headers!

Can anyone help?

cheers



 
Hi,

Why dont you just copy the sql statement and paste it into a blank view ? Or am I missing somthing ?
 
Thanks Andy

As I said in my post I'm new to SqlServer!!!

I copied the sql from my view into the query screen, via the DTS wizard, and hey it works!

thanks again
 
Glad to help Mate

I did not mean to sound condisending by the way :eek:)

Andy
 
No you didn't - need all the help I can get!!! s-)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top