我正在尝试发布对用户定义的表值类型的更改,但 SSDT 发布失败并出现以下错误:
This deployment may encounter errors during execution because changes to [dbo].[my_tvp] are blocked by [dbo].[my_stored_proc].[@myTvp]'s dependency in the target database.
TVP 从
CREATE TYPE [dbo].[my_tvp] as TABLE
(
[Id] VARCHAR (100) not null PRIMARY KEY,
[ColorCount] int not null
)
到
CREATE TYPE [dbo].[my_tvp] as TABLE
(
[Id] VARCHAR (100) not null,
[Id2] VARCHAE (7) NULL,
[ColorCount] int not null,
unique(Id, Id2)
)
我可以发布到新的本地数据库,但不能升级现有数据库。知道为什么吗?