Saving changes after table edit in SQL Server Management Studio

后端 未结 7 1733
有刺的猬
有刺的猬 2020-11-28 00:59

If I want to save any changes in a table, previously saved in SQL Server Management Studio (no data in table present) I get an error message:

Saving c

7条回答
  •  情深已故
    2020-11-28 01:37

    Go into Tools -> Options -> Designers-> Uncheck "Prevent saving changes that require table re-creation". Voila.

    That happens because sometimes it is necessary to drop and recreate a table in order to change something. This can take a while, since all data must be copied to a temp table and then re-inserted in the new table. Since SQL Server by default doesn't trust you, you need to say "OK, I know what I'm doing, now let me do my work."

提交回复
热议问题