DBCC--CHECKIDENT
生活随笔
收集整理的這篇文章主要介紹了
DBCC--CHECKIDENT
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
檢查活或重置自增鍵的標識值,可以使用NORESEED 來檢查當前標識值和標識列在表中的最大值。 如果當前標識值與表中數據沖突或希望將標識值重置到一個較小的值時,可以只用RESEED 來設置
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.
?
?
轉載于:https://www.cnblogs.com/TeyGao/p/3518770.html
總結
以上是生活随笔為你收集整理的DBCC--CHECKIDENT的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 设计模式原则总结--读《大话设计模式》有
- 下一篇: Create QR Code