1。字段删除后重建
可以先添加一个int字段,然后用update语句把标识列的值等于新建字段的值,再删除掉标识列,
并把新建列改为与标识列同样的字段名。
2。更新系统表
sp_configure 'allow update',1
reconfigure with override
update syscolumns set colstat=0 where colstat=1 and id=object_id('tablename')
go
sp_configure 'allow update',0
reconfigure with override
其他有些语句要分别执行才能成功