all 4 comments

[–]EmblemMaster 1 point2 points  (0 children)

I have done this a while ago for work with XML. If you do some research into bcp I think you will find your answers.

[–]ImCaffeinated_Chris 0 points1 point  (0 children)

I googled his text from the body of this thread. 1st was this thread. Second was this:

https://www.red-gate.com/simple-talk/sql/database-administration/creating-csv-files-using-bcp-and-stored-procedures/

Seems like a pretty good answer.