I am using BCP to export the contents of a column that has an XML datatype to an XML file. Everything is working fine except the XML file is missing the XML Declaration ( ). I have been trying everything I can think of and nothing seems to work. I must be missing something obvious because in most cases XML files will need the declaration. Does anyone know how to get the declaration in the file?
A new file is created each export.