• Tavis Reddick (8/19/2014)


    I am not sure about the report, but the SQL Server Management Studio issue seems to be that you are saving the results (possibly as text or CSV), not the XML column within them. If I want to save XML from SSMS results, I click the XML column (it is usually blue and underlined) which opens the XML in a new query window which can be saved as XML (without the usual declaration, but this usually works in applications).

    Yes, that works fine, but how to automate an email with the XML in a file as an attachment is the question.