SQL Azure Reset autoincrement

人盡茶涼 提交于 2019-12-07 00:18:05

问题


I found a lot of topics telling to use :

DBCC CHECKIDENT ('table', RESEED, 0)

But this is not supported by Azure SQL. Does somebody have any idea on how to do it easily ?
Thanks a lot !


回答1:


DBCC CHECKIDENT is not supported for now in SQL Azure as you commented.

Check this MSDN forum post, there are some solutions proposals, maybe one of them can help you out.




回答2:


You don't have too many options... the only one I can think of is to drop and recreate your table.



来源:https://stackoverflow.com/questions/11644507/sql-azure-reset-autoincrement

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!