When you update a value in a variable-length column in a table of a database that was upgraded from Microsoft SQL Server 2005, data in another variable-length column in the same row is deleted.
This issue occurs in Microsoft SQL Server 2014 and Microsoft SQL Server 2012. The following scenario may expose a database to this issue. This list represents a sequence of events:
You can use the script in the More Information section to verify the following:
This issue occurs in Microsoft SQL Server 2014 and Microsoft SQL Server 2012. The following scenario may expose a database to this issue. This list represents a sequence of events:
- A database is created in SQL Server 2005.
- In SQL Server 2005, you alter a table, and then you drop one or more variable-length columns at the end of the table definition.
- You add new variable-length columns that have a similar data type and length of the dropped columns.
- The database is upgraded from SQL Server 2005 to SQL Server 2014 or SQL Server 2012.
- You later update the value of another variable-length column, and the updated data has to overflow to a new page.
You can use the script in the More Information section to verify the following:
- Whether any tables in a given database have deleted variable-length columns
- Whether additional variable-length columns have been created that have matching offsets