Archive

Archive for the ‘Database’ Category

SQL Server 2008 display error when i want to edit a table

October 28, 2009 Leave a comment

SQL 2008 Saving changes is not permitted. The changes you have made require the following tables to be dropped and re-created.

I’ve just started using SQL 2008 and have encountered a very annoying problem. Whenever I change a table I get an 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.

WTF? I was able to change tables whenever I wanted to in SQL 2000 and 2005 and now I’m not allowed to in SQL 2008. Oh wait, I need to disable some stupid option that shouldn’t have been enabled in the first place. To do this follow these instructions:

Within SQL Management Studio click on the Tools menu. Then Options, then the Designer node and uncheck the box that says: Prevent saving changes that require the table to be re-created.

Now we can actually work with tables like we were able to do in SQL 2005. Nice extra step MS, next time make it more difficult to do what we need to do.

Categories: SQL Server 2008