Wednesday, November 5, 2008

Error saving when modifing tables

After I install SQL 2008 and the new SQL Server 2008 Management Studio, I started getting errors when I tried to save a table. I had just dropped an existing column.

Turns out that 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

When you press save, you will get the Save (Not Permitted) Dialog Box.

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.



http://msdn.microsoft.com/en-us/library/bb895146.aspx