SQL Server修改标识列方法 如自增列的批量化修改

--允许对系统表进行更新 exec sp_configure 'allow updates',1 reconfigure with override GO --取消标识列标记 update syscolumns set colstat = 0 where id = object_id('tablename') and colstat = 1 GO --插入id=8001-8003的行 --恢复标识列标记 update syscolumns set colstat = 1 where id = object_id('tablename') and
posted @ 2014-01-22 20:47  zhangsir  阅读(412)  评论(0编辑  收藏  举报