Click here to Skip to main content
65,938 articles
CodeProject is changing. Read more.
Articles / database

Error Message: Saving Changes Is Not Permitted

4.62/5 (5 votes)
3 May 2016CPOL 12K  
How to overcome an error message preventing you from saving a change in an SQL Server database

Introduction

When a change is made directly into a table, there might be cases where saving isn't possible. This tip explains the reasons and the possible actions to take in such cases.

Background

SQL Server Management Studio is a powerful tool which can allow accessing and changing database even if they are currently used. In many cases, you will be the one using the database, as part of an ongoing development so there is no risk recreating tables or even deleting data. In such case, you can avoid such error messages each time you want to make a change.

The Error Message

When you make a change in a table, which requires the table to be recreated, you might see the following error message:

Image 1

How To Avoid It

Go to Settings. Then go to Designers. You will see the "Prevent saving changes that require table re-creation" setting checked. Uncheck it and press OK. 

Image 2

Now you can make changes in tables and queries without getting this error message.

License

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