Altering user-defined table types in SQL Server

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

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

相关标签:
7条回答
  • 2020-12-13 12:34

    Simon Zeinstra has found the solution!

    But, I used Visual Studio community 2015 and I didn't even have to use schema compare.

    Using SQL Server Object Explorer, I found my user-defined table type in the DB. I right-mouse clicked on the table-type and selected . This opened a code tab in the IDE with the TSQL code visible and editable. I simply changed the definition (in my case just increased the size of an nvarchar field) and clicked the Update Database button in the top-left of the tab.

    Hey Presto! - a quick check in SSMS and the udtt definition has been modified.

    Brilliant - thanks Simon.

    0 讨论(0)
提交回复
热议问题