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

前端 未结 5 1626
轻奢々
轻奢々 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:34

    Because that's how SQL Server Management Studio does it (sometimes)!

    Use TSQL's ALTER TABLE instead:

    ALTER TABLE
        ADD myCol int NOT NULL
    

提交回复
热议问题