修改表结构迁移数据表来缩小表大小
过程:
1、新建表,对新表的表结构进行修改。
2、把老表的数据通过sqlserver的数据流转化来导入新表中。
老表的表结构:

新表结构:

主要是把nvarchar改为了varchar
老表大小:

新表大小:

表大小缩小了25.3GB
老表碎片情况:

新表的碎片:

网站名称:修改表结构迁移数据表来缩小表大小
文章转载:http://myzitong.com/article/ihdesg.html
1、新建表,对新表的表结构进行修改。
2、把老表的数据通过sqlserver的数据流转化来导入新表中。
老表的表结构:

新表结构:

主要是把nvarchar改为了varchar
老表大小:

新表大小:

表大小缩小了25.3GB
老表碎片情况:

新表的碎片:

网站名称:修改表结构迁移数据表来缩小表大小
文章转载:http://myzitong.com/article/ihdesg.html