How to change the base type of a UDT in Sql Server 2005?

后端 未结 1 1645
挽巷
挽巷 2020-12-30 09:23

I have my type \"x\" of type varchar(50). How can I alter it to varchar(100)? It seems I can\'t!

相关标签:
1条回答
  • 2020-12-30 09:51

    you can't. what you can do is

    • script all objects that contain the type using OBJECT_DEFINITION.
    • drop them.
    • recreate type with new length
    • recreate the objects.
    0 讨论(0)
提交回复
热议问题