How to reset identity seed in Sql Azure

前端 未结 3 1326
遇见更好的自我
遇见更好的自我 2020-12-07 00:46

I have tried the following in order to reset my Identity Seed of a column:

DBCC CHECKIDENT (\'dbo.Stuff\', RESEED, 0)

This does not work in

3条回答
  •  抹茶落季
    2020-12-07 01:31

    I think @haldyr's answer was probably unfairly deleted as its correct.

    The latest version of SQL Azure (v12) DOES support DBCC CHECKIDENT (and a bunch of others) however if your azure database server isn't brand new you will need to upgrade.

    Upgrading is easy, go to your azure DB Server on the new portal (the actual server not the DB itself) and click the big Latest Update button.

    enter image description here

    NOTE: Be aware there are a bunch of caveats to upgrading (Like some older stuff doesn't support it), so its worth reading the article http://azure.microsoft.com/en-us/documentation/articles/sql-database-preview-whats-new/#V12AzureSqlDbPreviewGaTable

提交回复
热议问题