Wednesday, February 9, 2011

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

Problem
=======


Message:
=======
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
The above dialog box appears in SQL Server 2008 Managemnet Studio (SSMS 2008) when you try and make changes to a table which reuire the table to be dropped and recreated internally.

Solution
========
To get rid of the dialog box follow the below steps to change the SSMS 2008 setting:


On  the Tools menu, click Options, expand Designers, and then click Table and Database Designers. Select or clear the Prevent saving changes that require the table to be re-created check box.

The above is shown the image below:


More Information
==============
The following actions might require a table to be re-created:
  • Adding a new column to the middle of the table
  • Dropping a column
  • Changing column nullability
  • Changing the order of the columns
  • Changing the data type of a column

--Abhishek Soni

No comments:

Post a Comment