检查活或重置自增键的标识值,可以使用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.

最新文章

  1. add user and grant privileges on mariadb
  2. OC初步 (一)
  3. 【Mocha.js 101】同步、异步与 Promise
  4. SOAP-XML请求(iOS应用下集成携程api)
  5. 帧动画FrameAnimation
  6. cacti批量添加主机脚本
  7. Word Ladder
  8. EF——使用Data Annotations和Fluent API配置数据库的映射配置 02.01(转)
  9. 纯css 写三角形
  10. .froxlor 玩起
  11. 关于RtlInitUnicodeString感想
  12. 如何搭建易企秀H5平台?
  13. django中使用Model的update_or_create函数时报错
  14. oracle dmp数据导入
  15. docker-compose 案例
  16. HDFS知识点总结
  17. SpringMVC中与Spring相关的@注解
  18. avalon2学习教程 03数据填充
  19. Hibernate一对多关联关系保存时的探究
  20. 鸟哥的Linux私房菜——第十章

热门文章

  1. spring jpa exists
  2. hdoj1260 Tickets (简单DP)
  3. 第六章 图(c)广度优先搜索
  4. SJY摆棋子&&[Violet 3]天使玩偶
  5. Zabbix监控PostgreSQL
  6. cookies,sessionStorage 和 localStorage 的区别
  7. IDEA 的VM Option设置加快页面的加载速度
  8. CreateMutex用法
  9. vue-route 路由传参的使用
  10. 201.09.22 除虫药水(线性dp)