22,210
社区成员
发帖
与我相关
我的任务
分享
use dbx;
go
drop table t;
create table t(v nvarchar(4000),v1 nvarchar(4000));
go
alter table t add x nvarchar(4000);
insert into t select 'aaasdfdsfds','sadfsadfdsf',replicate('x',4000)
select * from t;
alter table t drop column x;
select * from t;
update t set v=REPLICATE('a',4000),v1=REPLICATE('a',4000)
/*
消息 511,级别 16,状态 1,第 1 行
不能创建大小为 8063 的行,该大小大于所允许的最大行大小 8060。
语句已终止。
*/
exec sp_spaceused t