So there is a problem in the forum with this thread. I have received an email notification that Cataster has made a comment, and I can see that there are 8 comments to Viorel's answer, but the forum only displays one. The email notification only has text, so I may be missing any graphics.
all i want to do is export the data from the view so i can reimport it into a table. the table will have the same data type, the same columns, the same structure. Its all in the same SQL database/instance.
In that case, you should use native format and you should not bother about column headers. As you may have realised by now, adding headers with BCP is an exercise on the more advanced side.
When exporting for data for this purpose, you should use native format (since a conversion to text format could cause loss of precision in some cases). You should also use a format file, but don't worry, because it is easy:
bcp mydb.dbo.myview format null -f myview.fmt -n -T -S server\instance
bcp mydb.dbo.myiew out myview.bcp -f myview.fmt -T -S server\instance
That is, you use BCP to generate a format file. Why you should use a format file? This is something I learned the hard way... (There can be subtle differences between source and target which the format file can sort out.)
If you get the error Unable to open BCP host data-file when you trying to import the data, that most likely means that the file you specify does not exist.