SQL 名称正在使用时的服务器复制操作问题
SQL Server Replication Action if name is in use questions
在配置新的合并复制、设置所有文章的属性时,我遇到了问题。在 Destination Object -> Action if name is in use 中,我可以 select 四个不同的选项。我想弄清楚每一个是什么。我没有找到任何相关信息,它们是:
- 保持现有对象不变
- 删除现有对象并创建一个新对象
- 删除数据。如果文章有行过滤器,则仅删除与过滤器匹配的数据。
- 截断现有对象中的所有数据
文章 属性 Action if name is in use 与 @pre_creation_cmd 参数相关=11=]:
Specifies what the system is to do if the table exists at the
subscriber when applying the snapshot. pre_creation_cmd is
nvarchar(10), and can be one of the following values.
none - If the table already exists at the Subscriber, no action is taken.
delete - Issues a delete based on the WHERE clause in the subset filter.
drop (default) - Drops the table before re-creating it. Required to support Microsoft SQL Server Compact Subscribers.
truncate - Truncates the destination table.
在配置新的合并复制、设置所有文章的属性时,我遇到了问题。在 Destination Object -> Action if name is in use 中,我可以 select 四个不同的选项。我想弄清楚每一个是什么。我没有找到任何相关信息,它们是:
- 保持现有对象不变
- 删除现有对象并创建一个新对象
- 删除数据。如果文章有行过滤器,则仅删除与过滤器匹配的数据。
- 截断现有对象中的所有数据
文章 属性 Action if name is in use 与 @pre_creation_cmd 参数相关=11=]:
Specifies what the system is to do if the table exists at the subscriber when applying the snapshot. pre_creation_cmd is nvarchar(10), and can be one of the following values.
none - If the table already exists at the Subscriber, no action is taken.
delete - Issues a delete based on the WHERE clause in the subset filter.
drop (default) - Drops the table before re-creating it. Required to support Microsoft SQL Server Compact Subscribers.
truncate - Truncates the destination table.