How does one report an error when SQL Server opens XML content in a data table?

Source: Internet
Author: User
Tags management studio sql server management sql server management studio

Since SQL server2005, a new data type XML type is provided, which allows you to directly store data in a data table in the format of an XML file. In combination with the use of LINQ to SQL in ASP. NET, we can easily store XML files in the SQL Server database. However, by default, if the XML file you store is large (more than 2 MB), you cannot directly click View XML content in the SQL Server Manager to report the following error message:

How can this problem be solved? The error message is clearly described. in SQL Server Management studio, click the Tools menu and select options. Find the corresponding setting node and change the maximum character limit of XML data to unlimited (unlimited.

By default, to improve query efficiency, SQL Server Returns a maximum of 2 MB of XML data in management studio, if the content of the XML file you store is greater than 2 MB, the remaining characters are automatically truncated, causing an error when opening the file.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.