Altering user-defined table types in SQL Server

前端 未结 7 1513
心在旅途
心在旅途 2020-12-13 12:06

How can I alter a user-defined table type in SQL Server ?

7条回答
  •  生来不讨喜
    2020-12-13 12:21

    You should drop the old table type and create a new one. However if it has any dependencies (any stored procedures using it) you won't be able to drop it. I've posted another answer on how to automate the process of temporary dropping all stored procedures, modifying the table table and then restoring the stored procedures.

提交回复
热议问题