The software I'm working with uses a text box to store XML. From my searches on the Internet, the data type should contain 2 ^ 31 - 1 characters. Currently, SQL Server truncates XML at 65,535 characters each time. I know that this is caused by SQL Server because if I add the 65536th character to the column directly in Management Studio, it will say that it will not be updated because the characters will be truncated.
Is the maximum length really 65.535, or could it be because the database was developed in an earlier version of SQL Server (2000) and uses the legacy text data type instead of 2005?
If so, will changing the data type to text in SQL Server 2005 fix this problem?
source share