Topic: To transfer results of performance of stored procedure to a XML file.
There is a stored procedure in basis on a SQL server. It forms the data in a type xml with all groupings necessary to me (FOR XML). It is necessary means sql (for example, from other stored procedure) to write down these results in a xml-file and to add in it title "<? xml version =" 1.0"encoding ="UTF-8"?>". I so understood for this purpose utility BCP serves but how to write down about its help results of performance of stored procedure and did not understand. And still a problem that at such title Russian letters "are lost".