Thursday, December 01, 2011

SQL Server: Save Not Permitted Dialog Box [Field Notes]

Issue
In a new install of SQL Server 2008, when attempting to save changes to a table in a new database, I occasionally get the following 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 recreated.

Solution
Per this excellent article on MSDN help, take the following steps to rid yourself of this error:

  • Tools --> Options
  • Expand the Designers Section
  • Click the Table and Database Designers section
  • Uncheck the box labeled "Prevent saving changes that require table re-creation."

Caveat
Don't do this on a production database. Just don't do it. I only needed this for a quick temporary database, or when working in design mode. Otherwise, this option should always be enabled.

Save (Not Permitted) dialog box [MSDN]

1 comment:

  1. Funny, a few weeks back after bumping into this same problem way too often, I finally searched around and was really happy to find this simple fix. It was driving me crazy. I guess I should've blogged about it, but not having a Blog kind of gets in the way...

    ReplyDelete

Keep it classy, folks.