Forcing Management Studio to use ALTER TABLE instead of DROP/CREATE

前端 未结 4 1024
暗喜
暗喜 2021-01-11 13:49

I\'m wondering if is there a way to force MSSQL Management Studio to produce a script like this:

ALTER TABLE Mytable
ADD MyCol bit NOT NULL
CONSTRAINT MyColD         


        
4条回答
  •  臣服心动
    2021-01-11 14:20

    easy! just go to Tool->Option, then the Designer node and select Table and Database designer so that you can uncheck the Prevent saving changes that require ... checkbox.

    Now you can make any chage on your tables design!

提交回复
热议问题