XML Output is Truncated in SQL

后端 未结 8 1732
挽巷
挽巷 2020-12-09 03:44

I need to return my result set in XML and this works fine, but if the number of records are increased, my xml output is truncated here is my query



        
8条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-09 04:09

    The XML output you get in Query output window is not really intended for saving valid XML documents. You can get valid XML out of SQL Server when you capture it as a stream using ADO or SQLXML managed classes in .NET

    However you can limit the query output sizes by using In SQL Server Management Studio go to Tools >> Options >> Query Results >> SQL Server >> Results to Text >> Maximum number of characters displayed in each column

提交回复
热议问题