我正在尝试发布对用户定义的表值类型的更改,但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)
)我可以发布到新的本地数据库,但不能升级现有的数据库。知道为什么吗?
发布于 2013-06-18 22:36:37
我现在看到TVP不能被更改,它们必须被删除并重新创建,这是SSDT发布机制不支持的
https://stackoverflow.com/questions/17171228
复制相似问题