小编vvs*_*vvs的帖子

Nvarchar 列被截断为 256 个字符

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 …

sql-server alter-table

1
推荐指数
1
解决办法
2755
查看次数

标签 统计

alter-table ×1

sql-server ×1