我创建了一个名为 tvp_Shipment 的用户定义表类型,其中包含两列(id 和 name)。生成了一个快照,并且用户定义的表类型被正确地传播给了所有订阅者。
我在存储过程中使用了这个 tvp,一切正常。
然后我想在这个表值参数中再添加一列 created_date。我删除了存储过程(也从复制中),并且我删除并重新创建了具有 3 列的用户定义表类型,然后重新创建了存储过程并启用它以进行发布
当我生成新快照时,用户定义的表类型的更改不会传播到订阅者。新添加的列未添加到订阅中。
错误消息:
The schema script 'usp_InsertAirSa95c0e23_218.sch' could not be propagated to the subscriber. (Source: MSSQL_REPL, Error number: MSSQL_REPL-2147201001)
Get help: http://help/MSSQL_REPL-2147201001
Invalid column name 'created_date'. (Source: MSSQLServer, Error number: 207)
Get help: http://help/207