Sometime, we wanted to change the table design by renaming the column name, changing the data type and resizing the data type. After changes are applied and change the save the table, you will get the dialog box saying “Saving is not permitted”. For example, I wanted to change the “Product” table in the “Adventure Works” database. I am changing the Name column from nvarchar(50) to nvarchar(100).
When you try to save you will get the following dialog box.
We have the data in the table. We don’t want to drop and recreate the table for this small change.
Configuration in SSMS:
- Click on Tools –> Options.
- Click on Designer. You will design the following screen.
- Uncheck “Prevent saving changes that requires table re-creation”. Take a look at the following screen.
Now, you could save the table without any problem. If there are any dependency table, the dialog box will appear which warns about affected table, but this one wont harm anything.
Hope this helps someone.
Thanks,
Gowdhaman