0

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

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

4

1 回答 1

1

我现在看到 TVP 不能被更改,它们必须被删除并重新创建,这不受 SSDT 发布机制的支持

于 2013-06-18T14:36:36.760 回答