SQL Server Management Studio - Adding/Moving Columns require drop and re-create?

前端 未结 5 1625
轻奢々
轻奢々 2021-02-04 03:47

Why do I get message that the table needs to dropped and re-created when I add/move columns? I believe this happens after adding foreign key constraints.

What can I do t

5条回答
  •  孤街浪徒
    2021-02-04 04:43

    If you're more interested in simply getting SSMS to stop nagging, you can uncheck the "Prevent saving changes that require table re-creation" setting in Options->Designers->Table And Database Designers. The table(s) will still be dropped and re-created, but at least SSMS won't pester you quite as much about it.

    (This assumes you're working in an dev/test environment or in a production environment where a brief lapse in the existence of the table won't screw anything up)

提交回复
热议问题