SQL Error: Saving Changes is Not Permitted – Solution with Example

Last modified date:

When working with database objects, we may sometimes get into a situation when we want to change property of an object. For example change of data type in column of a table via table design in SQL Server management studio. If there is data in the table, SQL server should display an error message if you try to make changes. “Saving changes is not permitted. The changes you have made require the following tables to be dropped and re-created…“, so what can you do about that?

Problem: I try to change column data type in a table Google analytics from bigint to int. Change is not permitted from reasons mentioned above.

Saving Changes is Not Permitted – Solution

1) Variant  1 – Turning off “Prevent saving changes that require table re-creation” preference

In SQL server settings is a preference which can turn off similar notices. It can be found in Options -> Designers -> Table and database designers -> Prevent saving changes that require table re-creation

Saving changes is not permitted

2) Variant 2 – Use ALTER COLUMN command

Situation can be solved via alter column command. Change went through without any problem.

ALTER TABLE [Temp].[dbo].[Google_analytics] 
ALTER COLUMN [ga:newUsers] INT;
SQL ALTER COLUMN

My name is Jan Zedníček and I work as a BI Developer at Kentico Software in Brno. Mostly you can see me there working in the office, but I also work partly as a freelancer. I have been working as a freelancer for many companies for more than 5 years, but Kentico is the matter of my heart. I used to work as a financial controller at companies like Aero Vodochody or Sberbank and I also used to be a bond program manager in Unicapital Investment group. When I am not at work, I like playing volleyball, chess, doing a workout in the gym and I enjoy tasting of best quality rums. I am trying to summarize all my knowledge on this website not to forget them (because of the rum effect, you know =) and to put them forward to anyone. Don´t worry about asking for help or writing some comments.

Category: SQL Administration Tags:

About Ing. Jan Zedníček - BI Developer, Finance controller

My name is Jan Zedníček and I work as a BI Developer at Kentico Software in Brno. Mostly you can see me there working in the office, but I also work partly as a freelancer. I have been working as a freelancer for many companies for more than 5 years, but Kentico is the matter of my heart. I used to work as a financial controller at companies like Aero Vodochody or Sberbank and I also used to be a bond program manager in Unicapital Investment group. When I am not at work, I like playing volleyball, chess, doing a workout in the gym and I enjoy tasting of best quality rums. I am trying to summarize all my knowledge on this website not to forget them (because of the rum effect, you know =) and to put them forward to anyone. Don´t worry about asking for help or writing some comments.

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.