Sql – Need steps for Alter the table

alter-tablesql server

Whenever I make changes to a table structure in SSMS, there is a alert raised:

saving the changes is not permitted.the changes u have been made to the following tables to be dropped and recreate..

Best Answer

Some changes cause a table to be dropped and recreated. One such example is adding a column to the middle of a table rather than to the end.

You can do one of two things:

Option 1

Use TSQL to make your changes and add the column to the end (or the equivalent non table-drop option for your specific edit)

Option 2

Alter the default behavior of SSMS (warning - this is a very dangerous thing in production environments)

Open SQL Server 2008 Management Studio (SSMS). In the menu, go to Tools / Options. In the Navigation pane, expan Designers, and select "Table and Database Designers".

Under Table options, uncheck “Prevent saving changes that require the table re-creation” option and click OK.