sql - 如何使用 Visual Studio 2008 Server Explorer 将主键索引重置为 1?

标签 sql visual-studio-2008

如何使用 Visual Studio 2008 Server Explorer 将主键索引重置为 1?

谢谢!

最佳答案

要将 IDENTITY 值重置为 1,请使用 DBCC CHECKIDENT :

DBCC CHECKIDENT (‘YOUR_TABLE_NAME_HERE’, RESEED, 1)

关于sql - 如何使用 Visual Studio 2008 Server Explorer 将主键索引重置为 1?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3593558/

相关文章:

testing - 通过电子邮件发送 VSTS 2008 测试结果

SQL : Get range date from multiple begin and end date

sql - Eclipse SQL Explorer 插件在哪里存储其首选项?

具有嵌套组函数的 SQL

c++ - 有什么方法可以让 AtomineerUtils 插件忽略 __declspec?

asp.net - 如何禁用来自 Aspx 文件(HTML、CSS)的警告

c# - Visual Studio 打包 : Another version of this product is already installed

sql - 查找不连续的用户记录

mysql - 如果字段存在,则在 MySQL 和 BASH 中回显 "something",否则插入表 - 输出到变量?

c# - 错误 : A project with an out put type of class library