We tried to add new ntext nullable column in MS SQL table. We were quite surprised to get the following error 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.
It wouldn’t let us add an “Allow Nulls” column? That just seemed absurd.
Apparently, this is now the default behavior for any of the following changes to a table:
- 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
In order to prevent this default behavior, you simply need to uncheck a box in the table designer options using the Tools -> Options menu item
Expand the Designers section to display the Table and Database Designers options.
To change this behavior, just uncheck the “Prevent saving changes that require table re-creation” checkbox.
Original article was published at http://codeslammer.wordpress.com/2008/10/19/saving-changes-is-not-permitted/
