While creating and editing a database in SQL server 2008 I soon ran into a brick wall, or a 'by design' feature of the Database Management Studio.
When you design a table in a database and then try to make a change to a table structure that requires the table to be recreated, the Database Management Studio will not allow you to save the changes.
This is caused by a configuration setting that default results in the following dialog:

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

This dialog states: "Saving changes is not permitted. The changes you have made require the following tables to be dropped and re-created. You have either made changes to a table that can't be re-created or enabled the option Prevent saving changes that require the table to be re-created."

You can only react clicking the Cancel button.
And than Management Studio shows this dialog:

 

User canceled out of save dialog

So what you want to do to configure the setting with the value you want (IMHO should be the default setting!).
Go to: Tools > Options

Tools > options menu
Tools menu choose Options

Select the tab Designers and choose Tables and designers

Prevent changes that require table re-creation

And uncheck the option: "Prevent saving changes that require table re-creation".
Once you now save changes it will work.

Henry Cordes
My thoughts exactly...

Currently rated 4.8 by 11 people

  • Currently 4.818182/5 Stars.
  • 1
  • 2
  • 3
  • 4
  • 5

Related posts

Comments

Bill Ross us

Thursday, November 13, 2008 2:37 AM

Thanks, that helped.

I agree that it should be the default.

I love the "my thoughts exactly" running joke!

Bill

david us

Saturday, November 22, 2008 12:25 AM

ugh, MSFT is getting to be so frustrating. Is there any sort of end user testing going on before they release apps?

Henry nl

Saturday, November 22, 2008 12:33 AM

Well it looks like this one did slip through Smile

Dominique Lavault

Tuesday, December 16, 2008 7:41 PM

Thanks, that helped.
david, they did it on purpose i think : better for a db admin to know what he's doing before unchecking this box.

prakash in

Wednesday, January 07, 2009 1:01 PM

Thanks.
Now i can change in table definition thats great

Prakash Gupta

jaffir ly

Tuesday, March 03, 2009 6:01 PM

Thanks, that was the perfect answer to my problem!

Henry nl

Wednesday, March 04, 2009 2:08 PM

Always a pleasure to hear somebody actually was helped by my post.

Shashi Kant chauhan in

Monday, March 09, 2009 3:30 AM

Thanks It really helpfull

Regards
Shashi kant Chauhan

Henry nl

Monday, March 09, 2009 1:05 PM

My pleasure

Bharath sg

Tuesday, March 17, 2009 8:20 AM

VERY helpful exactly our thoughts haha like ur quote and the long face.
any idea how to set the primary key as the bindingkeynavigatoritem number i actually imported the data from excel.

Henry nl

Tuesday, March 17, 2009 9:47 AM

Good to hear.

Could you specify your problem? I want to help, but i am not sure what you need.
If all you want is to set the primary key:

In SQL Server Management Studio expand the folder Tables and reight clcik on the Table you want to modify.
Click on 'Design'
Select the colunm you want to make primary key
In the toolbar Click on the key icon to make the column primary key

If you need to autonumber also, you have to expand the Identity Specification node in the Column Properties and double click on 'Is Identity'.

hope this helps, if you want something else let me know, maybe I can help.

Regards

one million euro eg

Friday, April 03, 2009 9:44 AM

Thanks alot for sharing this info.

I searched alot to solve it.

hande in

Friday, July 31, 2009 5:49 AM

Perfectly solved my problem
Thanks ! Smile

Ali ir

Friday, August 07, 2009 12:37 AM

Thank you, very much.
Solved my problems !

Milvio

Friday, August 07, 2009 8:55 PM

Thank you very much, very helpful.

Mahmoud ir

Wednesday, August 19, 2009 6:38 AM

Thanks, It works great!

Brock us

Tuesday, August 25, 2009 1:09 AM

This is a confirmed bug, however, it is NOT recommended to uncheck this option as it my result in changes being lost.

http://support.microsoft.com/kb/956176

Henry

Tuesday, August 25, 2009 2:18 AM

Well, let's hope they fix this bug soon than.
How else are we going to change the design of our tables?

Ben ca

Wednesday, September 02, 2009 8:21 PM

Well the date of that KB article is March 2009... this is a major problem. The whole point of a visual design tool is to use it visually... "use T-SQL instead" is not an appropriate response from Microsoft. The weird thing is it just started happening to me very recently. I was able to use the tool fine before.

Henry

Thursday, September 03, 2009 3:53 PM

That's strange, and I agree, it is no solution to use T-SQL.
Good luck

Eyob us

Thursday, September 10, 2009 5:38 AM

Thanks, saved me lots of time. And i totally agree that it should be unchecked by default. Not sure why they designed it that way.

Harry us

Sunday, September 13, 2009 2:14 PM

Thanx......

Anwar in

Sunday, October 11, 2009 12:54 PM

Thanks a million

Mehraban ir

Thursday, November 05, 2009 7:28 AM

MUAAAAAAAAACKS Laughing
Thanks a trillion

Basheer in

Tuesday, November 17, 2009 4:07 AM

This has really helped me to solve the issue, lot of lot of thanks dear dear.Thanks for spending your time and share your knowledge.
Basheer

Ba Nyar sg

Friday, November 20, 2009 8:36 PM

Hi Henry, Thank you so much for your very clear and comprehensive Explanation.

You must be very kind as you have prepared this answer with full screen shots.

That's really helped me and I also definitely agree that this option should be unchecked by default.

Henry

Saturday, November 21, 2009 5:16 AM

@Ba nyhar,
Thank you for your kind comment.
I am glad I could be of help.

Henry

sadegh.t ir

Friday, November 27, 2009 2:06 AM

Thanx......

Luiz Arruda br

Friday, December 25, 2009 9:48 PM

Thanks man! Every little bit of help (when it comes to developing a database application) is indeed welcome! You really helped us! Thank you!!

saeid ektefaie ir

Tuesday, December 29, 2009 4:24 PM

thanks.it worked.

Arkar

Saturday, January 02, 2010 5:09 PM

Thanks a million

Chris us

Saturday, January 02, 2010 7:59 PM

This is a risk to turning off this option. You can lose changes if you have change tracking turned on (your tables).

Chris

chrisbarba.wordpress.com/.../

Henry

Saturday, January 02, 2010 11:26 PM

@Chris:
Hi Chris,
I agree on a production machine you need to be carefull with these things.
That said on a production or test environment, I think it's not an issue.

All the comments on this post tell me Microsoft needs to communicate this kind of changes better.

Thanks anyway for your caveat.

Henry

Sedat Kumcu tr

Thursday, January 21, 2010 5:15 PM

Thanks for this useful article. best regards.

John

Tuesday, January 26, 2010 11:58 AM

usefull info !! Thx

john th

Thursday, January 28, 2010 3:30 AM

thank you

Joey Triviani hu

Monday, February 01, 2010 6:59 PM

This is easy, but you have saved a lot of life with this solution. Did you act in Baywatch too?

feffe us

Sunday, February 07, 2010 5:57 PM

Thank you, works great!

Andrey Selitsky by

Monday, February 15, 2010 7:19 AM

Thanks a lot!

Ali

Saturday, February 20, 2010 8:41 AM

Thanks, chill marooooo yar...

AliWaqas

Saturday, February 20, 2010 8:42 AM

Thanks, chill marooooo yar...

ogolla ke

Monday, March 01, 2010 12:25 AM

Thanks a million dude.

Ad pt

Thursday, March 18, 2010 4:57 AM

Hi,
Very thanks, this help!

Muito obrigado, isso realmente ajudou-me muito com este problema que obrigava a recriar as tabelas.
[]

Ad.

Arian ir

Thursday, March 18, 2010 6:46 PM

Thank you, I searched for this problem and found this site. ThanX for your help

Phil us

Saturday, March 20, 2010 12:35 AM

Thanks. I used your answer to solve a problem.

Andre Parent ca

Sunday, March 28, 2010 1:29 AM

Merci vraiment, cela fait une heure que je ne trouvais pas la solution.
Je m'ennuis de mon Entreprise Manager

André Parent
www.webselect.ca

abdallah Hanini jo

Wednesday, April 07, 2010 7:20 PM

Thank's
but I need how to make multi fields in same table PK

Simon Cooper gb

Wednesday, April 14, 2010 2:35 AM

thanks this helped me. This makes management studio very diffult to use to make changes to tables fields. It think the setting should be disabled as default.

Abdul us

Thursday, May 06, 2010 10:45 AM

Many thanks dude! Smile

nikhil khandelwal in

Sunday, May 09, 2010 4:52 AM

Thanks dude !

sara sy

Monday, May 10, 2010 6:12 PM

thanks a lot Smile

Daniel id

Friday, May 21, 2010 12:56 AM

Thanx you so much.. very helpful.. Laughing

Jimmy gb

Friday, May 21, 2010 12:26 PM

Thanks this was very helpful! You are number 2 in google when i searched this error and website number 1 took forever to load!!!

may sg

Saturday, May 22, 2010 7:48 PM

thanks alot

aman in

Saturday, May 29, 2010 9:45 AM

thx.... its really very helpful...

Omda eg

Monday, May 31, 2010 11:41 AM

Thanks Alot

Sanjay in

Thursday, June 03, 2010 5:29 PM

Thanx

Mads dk

Thursday, June 10, 2010 4:48 AM

Thanks Henry

goldeneyes us

Sunday, June 20, 2010 7:18 PM

thanks for your sharing information.

Climb us

Saturday, July 03, 2010 9:57 AM

This help me a lot about sql server 2008, thanks!

tony us

Sunday, July 04, 2010 3:53 PM

thank you for very much for taking the time to write this up. the screenshots helped a lot. seems like with every release of management studio, more and more gotchas are put in.

josh cn

Tuesday, July 06, 2010 6:46 AM

Thank you, its really very helpful

Diezdedos uy

Thursday, July 08, 2010 9:58 AM

MUUUCHAS GRACIAS POR LA AYUDA !

Anny

Friday, July 09, 2010 1:09 AM

It helps me,thanks a lot

Ken us

Thursday, July 15, 2010 12:22 PM

Thank you helped alott!

Another tr

Tuesday, July 20, 2010 9:53 PM

Thanks buddy.This is really helpful ;)

Trent au

Wednesday, August 04, 2010 4:57 PM

1. MSFT absolutely made the right defaulting choice here. SSMS should make it hard for a person to perform potentially destructive actions without knowing exactly what they're doing.
2. To every commenter that simply said "Thanks! This helped me!": You're making it really hard to work out if something useful was said in the comments.

Nimisha Thanawala in

Wednesday, August 11, 2010 11:53 PM

Frown i made the changes and the table is in such an unorder format. i wish i would have found this earlier.
Thanks a lot

Eduardo Oliveira br

Thursday, August 19, 2010 11:54 AM

Thanks!

Astray ca

Friday, August 20, 2010 3:50 AM

Muchas gracias de todo corazon.

eli ir

Sunday, August 22, 2010 11:25 AM

thank you very much

Add comment


 

  Country flag

[b][/b] - [i][/i] - [u][/u]- [quote][/quote]



Live preview

Saturday, September 04, 2010 2:21 AM