DBCC--CHECKIDENT
檢查活或重置自增鍵的標(biāo)識值,可以使用NORESEED 來檢查當(dāng)前標(biāo)識值和標(biāo)識列在表中的最大值。 如果當(dāng)前標(biāo)識值與表中數(shù)據(jù)沖突或希望將標(biāo)識值重置到一個較小的值時,可以只用RESEED 來設(shè)置
DBCC CHECKIDENT?
(?
??????? table_name
??????? [ , { NORESEED | { RESEED [ , new_reseed_value ] } } ]
)
[ WITH NO_INFOMSGS ]
NORESEED?
Specifies that the current identity value should not be changed.
RESEED?
Specifies that the current identity value should be changed.
new_reseed_value?
Is the new value to use as the current value of the identity column.
WITH NO_INFOMSGS
Suppresses all informational messages.
?
?
轉(zhuǎn)載于:https://www.cnblogs.com/TeyGao/p/3518770.html
總結(jié)
以上是生活随笔為你收集整理的DBCC--CHECKIDENT的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 设计模式原则总结--读《大话设计模式》有
- 下一篇: Create QR Code