Click here to Skip to main content
15,880,469 members
Articles / Database Development / SQL Server / SQL Server 2008R2
Tip/Trick

SQL Server 2008 Error: Saving changes is not permitted

Rate me:
Please Sign up or sign in to vote.
4.75/5 (11 votes)
22 Apr 2012CPOL1 min read 53.7K   1   6
How to fix this error.

Introduction

SQL Server 2008 Error: Saving changes is not permitted.

Solution

While creating and editing a database in SQL Server 2008 I ran into a brick wall, or a 'by design' feature of the Database Management Studio.

When you design a table in a database and then try to make a change to a table structure that requires the table to be recreated, the Database Management Studio will not allow you to save the changes. This is caused by a configuration setting that results in the following dialog:

This dialog states: "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."

You can only react by clicking the Cancel button. And then Management Studio shows this dialog:

So what do you want to do to configure the setting with the value you want (should be the default setting!)?

Go to: Tools > Options 

“Designers –> "Table and Database Designers”

And uncheck the option: "Prevent saving changes that require table re-creation". Once you save the changes it will work.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Team Leader
India India
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
GeneralThanks, Was searching for it Pin
Ritweek27-Oct-14 21:07
Ritweek27-Oct-14 21:07 
QuestionAnnoying Pin
Member 439852516-Jul-13 11:19
Member 439852516-Jul-13 11:19 
GeneralMy vote of 5 Pin
kulinp30-Apr-13 21:40
kulinp30-Apr-13 21:40 
Very handy tip. Thanks.
GeneralMy vote of 5 Pin
jeffpda27-Sep-12 10:52
jeffpda27-Sep-12 10:52 
GeneralMy vote of 5 Pin
saj_2110-Sep-12 3:10
saj_2110-Sep-12 3:10 
GeneralMy vote of 5 Pin
Member 888983928-Aug-12 3:48
Member 888983928-Aug-12 3:48 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.