Error:”Saving changes is not permitted” on SQL Server 2008

I was using sql server 2008 first time . I have created my database table in it and loked fine . Aftrer two days I needed to add some columns and change some of the properties in the tables I have already created . As usual I have done the changes and click on save table button…

ooopppss!!!

I get an error message “Saving changes is not permitted. The changes that 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

Possible reasons for this error :

  • You change the Allow Nullssetting for a column.
  • You reorder columns in the table.
  • You change the column data type.
  • You add a new column

(Refernce from MSDN)

reference

After analyzing I have found a fix for it :

  1. Open SQL Server Management Studio (SSMS).
  2. On the Tools menu, click Options.
  3. In the navigation pane of the Options window, click Designers.
  4. Select or clear the Prevent saving changes that require the table re-creation check box, and then click OK.

Note : In general you should keep this checkbox  checked . Alter changes via script.

 

Advertisements

2 thoughts on “Error:”Saving changes is not permitted” on SQL Server 2008

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s