復(fù)制代碼 代碼如下:
--允許對(duì)系統(tǒng)表進(jìn)行更新
exec sp_configure 'allow updates',1
reconfigure with override
GO
--取消標(biāo)識(shí)列標(biāo)記
update syscolumns set colstat = 0 where id = object_id('tablename') and colstat = 1
GO
--插入id=8001-8003的行
--恢復(fù)標(biāo)識(shí)列標(biāo)記
update syscolumns set colstat = 1 where id = object_id('tablename') and name = '標(biāo)識(shí)列名稱'
--重新設(shè)置標(biāo)識(shí)的起始值
DBCC CHECKIDENT (表名稱, RESEED, 10003)
--禁止對(duì)系統(tǒng)表進(jìn)行更新
exec sp_configure 'allow updates',0
reconfigure with override
新聞熱點(diǎn)
疑難解答
圖片精選