日期:2014-05-18 浏览次数:20471 次
set statistics io off use tempdb go --drop table tb1 create table tb1(id int identity primary key,a varchar(40),b varchar(max)) go insert into tb1(a,b) select NEWID(),REPLICATE('a',2000) go 10000 --drop table tb2 create table tb2(id int identity primary key,a varchar(40),b varchar(max)) go sp_tableoption 'tb2','large value types out of row',1 go insert into tb2 (a,b) select NEWID(),REPLICATE('a',2000) go 10000 set statistics io on select COUNT(*) from tb1 select COUNT(*) from tb2