I have a SQL Server Express 2012 database. There is a table which previously had a column of type nvarchar(255)
. Now my requirements have changed and I am required to store long strings in the same column, so I modified the columns to have size 512.
alter Table [dbo].[mytable] ALTER COLUMN [mycol] nvarchar(512) NULL;
Run Code Online (Sandbox Code Playgroud)
Now when I try updating data in the column whose size was increased, the update goes through fine. But when I query the data, the …