Dan Rigsby – Coding Up Style

Developer.Speaker.Blogger

SQL Server 2008 Error: Saving changes is not permitted

Posted by Dan Rigsby on September 26th, 2008

If you have been playing with SQL Server Management Studio 2008 and are modifying tables in the designer, you may run into this error:

Saving changes is not permitted. The changes you have made require the following tables to be dropped and re-created.  You have either made changes to a table that can’t be re-created or enabled the option Prevent saving changes that require the table to be re-created.

Here is a screenshot:

SSMS1

In the 2008 , they have added a new option to prevent saving of changes that will require a table re-creation.  If you think about it, this is a good thing.  If you are running a production database, you want maximum performance.  If Management Studio needs to re-create a table to apply a change that means it needs to create a copy of the table, transfer the data, create the new table, move the data over, delete the old stuff, etc.  This can potentially be a major operation. 

However, if you don’t want this feature enabled or our just working with a development or test database, it is easy to turn off.  Just open up the Options window in Management Studio and go to “Designers –> "Table and Database Designers”, find the “Prevent saving changes that require table re-creation” option, and turn it off.

SSMS2

DotNetKicks Image

16 Responses to “SQL Server 2008 Error: Saving changes is not permitted”

  1. Arjan`s World » LINKBLOG for September 27, 2008 Says:

    [...] SQL Server 2008 Error: Saving changes is not permitted – Dan Rigsby This SQL Server thing is becoming more and more complex. At least when you don’t spend a lot of time in there [...]

  2. Guy Ellis Says:

    Much appreciated Dan – saved me a ton of time.

  3. V Says:

    Thanks a lot!

  4. Saving Changes is Not Permitted? « Code Slammer Says:

    [...] http://www.danrigsby.com/blog/index.php/2008/09/26/sql-server-2008-error-saving-changes-is-not-permi... [...]

  5. Vinit Says:

    Thanks.. ur answer solved the problem bang on !!

  6. Joe Behymer Says:

    Needed to get around this, searched google and found you were second result :)

  7. Tom Loyd Says:

    Thank you very much! My headache has been cleared!

  8. Monir Says:

    Thank you.

  9. Archan Says:

    Thanks a lot…helpful

  10. Sean Says:

    Thanks so much!

  11. stanley Says:

    This didn’t work for me. It is supposed to and our DBA sent out an email telling us to do this same thing, however, he is out today of all days.

  12. Jason Says:

    If I knew you, I’d buy you a beer.

  13. chanhau Says:

    thanks Dan, save me a lot of time

  14. Roger Williams Says:

    Definitely top 10 dumbass new features

  15. Shahzad Says:

    Thank you Dan! for your help Much appreciated….

  16. Vincent D'Souza Says:

    Great article and thank you for that. I was going through the same problem and found this article very helpful.

    One thing I noticed that, I could not find “Designers –> “Table and Database Designers” menu but I had to go through the Tools -> Options to get there.

    Thank you,

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>