SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 SQL Server Administration (2008)
 Can't modify column data type
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Nodrog
Starting Member

2 Posts

Posted - 12/13/2012 :  12:27:42  Show Profile  Reply with Quote
When trying to modify a column data type in a 3rd party database, I get a message stating that "Saving changes is not permitted" and that tables would have to be dropped or recreated.

Is there a prevent option or something I need to change?

sunitabeck
Flowing Fount of Yak Knowledge

5155 Posts

Posted - 12/13/2012 :  12:36:07  Show Profile  Reply with Quote
I would be weary about changing it if it is a vendor database - might void your warranty or break their code or middle tier applications.

However, if you do want to do it, Tools->Options->Designers->Table and Database Designers and uncheck the "Prevent saving changes that require table recreation".
Go to Top of Page

Nodrog
Starting Member

2 Posts

Posted - 12/13/2012 :  12:45:19  Show Profile  Reply with Quote
Great, thank you very much, that was the problem
Go to Top of Page

srimami
Posting Yak Master

160 Posts

Posted - 12/18/2012 :  03:52:51  Show Profile  Reply with Quote
Wow, that's a good one
Go to Top of Page

ScottPletcher
Constraint Violating Yak Guru

USA
410 Posts

Posted - 12/21/2012 :  17:53:08  Show Profile  Reply with Quote
Whenver possible, you should use an
ALTER TABLE
statement instead of changing the table thru SSMS "Design". SSMS is not only much more overhead, but it can sometimes "hang" and/or cause strange errors.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.06 seconds. Powered By: Snitz Forums 2000