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

By | 2. 2. 2020

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
Rate this post
Category: SQL Administration Tags:

About Jan Zedníček

My name is Jan Zedníček and I work as a freelancer. I have been working as a freelancer for many companies for more than 5 years. I used to work as a financial controller, analyst and manager at many different companies in field of banking and manufacturing. 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.