由于TVP依赖性,SSDT发布被阻止

时间:2013-06-18 14:15:01

标签: sql-server-2008 sql-server-data-tools table-valued-parameters

我正在尝试将更改发布到用户定义的表值类型,但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)
)

我可以发布到新的本地数据库,但不能升级现有数据库。知道为什么吗?

1 个答案:

答案 0 :(得分:0)

我现在看到TVP无法更改,必须删除并重新创建,SSDT发布机制不支持