I'm getting this error when I alter table alter column from nvarchar(4000) to nvarchar(max):
Cannot create a row of size 8064 which is greater than the allowable maximum of 8060
I've looked through the similar questions and I still can't explain why this doesn't work
Converting nvarchar(4000) to nvarchar(max)
Cannot create a row of size 8064 which is greater than the allowable row size of 8060
I've also tried replacing the alter statement to an add column and update:
BEFORE:
alter table myTable alter column myColumn nvarchar(max)
AFTER:
exec sp_rename 'dbo.myTable.myColumn', 'myColumn_old', 'COLUMN'
GO
alter table myTable add myColumn nvarchar(max)
GO
update myTable set myColumn = myColumn_old
But I still get the same error.
How can I update this column and what's happening here?