Alter user defined type in SQL Server

后端 未结 10 1133
没有蜡笔的小新
没有蜡笔的小新 2020-12-02 19:47

I created few user defined types in my database as below

CREATE TYPE [dbo].[StringID] FROM [nvarchar](20) NOT NULL

and assigned them to vario

10条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-02 20:29

    As devio says there is no way to simply edit a UDT if it's in use.

    A work-round through SMS that worked for me was to generate a create script and make the appropriate changes; rename the existing UDT; run the create script; recompile the related sprocs and drop the renamed version.

提交回复
热议问题