Sql Saving Changes Is Not Permitted

Jul 15, 2016 - If you receive the following error after trying to make changes to your tables in SQL Server Management Studio using the graphical table.

When I create a table in SQL Server and save it, if I try to edit the table design, like change a column type from int to real, I get this error:

Saving changes is not permitted. The change you have made requires the following table to be dropped and re-created. You have either made changes to a table that can't be recreated or enabled the option prevent saving changes that require the table to be re-created.

Why do I have to re-create the table? I just want to change a data type from smallint to real.

The table is empty, and I didn't use it until now.

Brian Tompsett - 汤莱恩
4,38214 gold badges40 silver badges107 bronze badges
ArashArash
3,6504 gold badges13 silver badges12 bronze badges

15 Answers

From Save (Not Permitted) Dialog Box on MSDN :

The Save (Not Permitted) dialog box warns you that saving changes is not permitted because the changes you have made require the listed tables to be dropped and re-created.

The following actions might require a table to be re-created:

  • Adding a new column to the middle of the table
  • Dropping a column
  • Changing column nullability
  • Changing the order of the columns
  • Changing the data type of a column <<<<

To change this option, on the Tools menu, click Options, expand Designers, and then click Table and Database Designers. Select or clear the Prevent saving changes that require the table to be re-created check box.

See AlsoColt Kwong Blog Entry:
Saving changes is not permitted in SQL 2008 Management Studio

Thomas Ayoub
23.4k15 gold badges64 silver badges112 bronze badges
Robert HarveyRobert Harvey
151k37 gold badges290 silver badges426 bronze badges

Do you use SSMS?

If yes, goto the menu Tools >> Options >> Designers and uncheck “Prevent Saving changes that require table re-creation”

ypercubeᵀᴹypercubeᵀᴹ
95.9k12 gold badges144 silver badges201 bronze badges

Prevent saving changes that require table re-creation

Five swift clicks

Sql Saving Changes Is Not Permitted
  1. Tools
  2. Options
  3. Designers
  4. Prevent saving changes that require table re-creation
  5. OK.

After saving, repeat the proceudure to re-tick the box. This safe-guards against accidental data loss.

Further explanation

  • By default SQL Server Management Studio prevents the dropping of tables, because when a table is dropped its data contents are lost.*

  • When altering a column's datatype in the table Design view, when saving the changes the database drops the table internally and then re-creates a new one.

*Your specific circumstances will not pose a consequence since your table is empty. I provide this explanation entirely to improve your understanding of the procedure.

Knickerless-Noggins

Ssms Option Prevent Saving Changes

Knickerless-Noggins
5,5653 gold badges47 silver badges61 bronze badges

To change the Prevent saving changes that require the table re-creation option, follow these steps:

Open SQL Server Management Studio (SSMS).On the Tools menu, click Options.

In the navigation pane of the Options window, click Designers.

Select or clear the Prevent saving changes that require the table re-creation check box, and then click OK.

Note: If you disable this option, you are not warned when you save the table that the changes that you made have changed the metadata structure of the table. In this case, data loss may occur when you save the table.

Martijn PietersNot
745k158 gold badges2680 silver badges2412 bronze badges
Tabish UsmanTabish Usman
2,1332 gold badges12 silver badges13 bronze badges

It is very easy and simple setting problem that can be fixed in 5 seconds by following these steps

Sql Server 2016 Prevent Saving Changes

To allow you to save changes after you alter table, Please follow these steps for your sql setting:

  1. Open Microsoft SQL Server Management Studio 2008
  2. Click Tools menu options, then click Options
  3. Select Designers
  4. Uncheck 'prevent saving changes that require table re-creation' option
  5. Click OK
  6. Try to alter your table
  7. Your changes will performed as desired
Rizwan GillRizwan Gill

Go on Tool located at top menu.
Choose options from dropdown.You have a popup now select Designers option located on left hand block of menus. Uncheck the option Prevent saving changes that require table re-creation. Click on OK Button.

Andrew Barber
34.3k14 gold badges79 silver badges109 bronze badges
FIFO BIZSOLFIFO BIZSOL

Un-tick the Prevent saving changes that require table re-creation box from Tools ► Options ► Designers tab.

SQL Server 2012 example:

Knickerless-Noggins
5,5653 gold badges47 silver badges61 bronze badges
pedrampedram
5,2086 gold badges43 silver badges68 bronze badges

Copied from this link' ... Important We strongly recommend that you do not work around this problem by turning off the Prevent saving changes that require table re-creation option. For more information about the risks of turning off this option, see the 'More information' section. '

' ...To work around this problem, use Transact-SQL statements to make the changes to the metadata structure of a table. For additional information refer to the following topic in SQL Server Books Online

For example, to change MyDate column of type datetime in at table called MyTable to accept NULL values you can use:

alter table MyTable alter column MyDate7 datetime NULL '

Panther
2,8479 gold badges22 silver badges42 bronze badges
PanagiotisPanagiotis

And just in case someone here is also not paying attention (like me):

For Microsoft SQL Server 2012, in the options dialogue box, there is a sneaky little check box that APPARENTLY hides all other setting. Although I got to say that I have missed that little monster all this time!!!

After that, you may proceed with the steps, designer, uncheck prevent saving blah blah blah...

Gellie AnnGellie Ann

Sql Express Saving Changes Is Not Permitted

This can be changed easily in Microsoft SQL Server.

  1. Open Microsoft SQL Server Management Studio 2008
  2. Click Tools menu
  3. Click Options
  4. Select Designers
  5. Uncheck 'Prevent saving changes that require table re-creation'
  6. Click OK
Irshad AhmedIrshad Ahmed

Tools >> Options >> Designers and uncheck “Prevent Saving changes that require table re-creation”:

halfer
15.1k7 gold badges60 silver badges123 bronze badges
سیدرسول میرعظیمیسیدرسول میرعظیمی

1) Open tool which is on top.
2) Choose options from Picklist.
3) Now Comes the popup and you can now select designers option from the list of menus on the left side.
4) Now prevent saving changes need to be unchecked that needed table re-creation. Now Click OK.

Rishabh SethRishabh Seth

From the Tools menu, click on Options, select Designers from the side menu and untick prevent changes that can lead to recreation of a table. Then save the changes


If you can not see the 'Prevent saving changes that required table re-creation' in list like thatThe image

You need to enable change tracking.

  • Right click on your database and click Properties
  • Click change tracking and make it enable
  • Go Tools -> Options -> Designer again and uncheck it.
Emre KarataşoğluEmre Karataşoğlu

If you use sql server Management studio go to Tools >> Options >> Designers and uncheck “Prevent Saving changes that require table re-creation”It works with me

Taher ChtaywiTaher Chtaywi

Not the answer you're looking for? Browse other questions tagged sql-server-2008savessmsmenuitem or ask your own question.