In MS SQL Server 2014 SP 2, I have a Communication table that is used by many areas of our website to store user notes, comments, and certain email text. The Comments column is defined as nvarchar(4000) and I need to change it to nvarchar(max).
The table has over 250k rows with numerous constraints and indexes. In testing, changing the column size has timed out or filled the transaction log.
At the moment, I have a copy of the data in another table that has the structure change. Could I use sp_rename to swap out the tables and move the data changes a final time?
What is the best way to increase the column size with the least impact to the users?
The table has over 250k rows with numerous constraints and indexes. In testing, changing the column size has timed out or filled the transaction log.
At the moment, I have a copy of the data in another table that has the structure change. Could I use sp_rename to swap out the tables and move the data changes a final time?
What is the best way to increase the column size with the least impact to the users?