sp_modify_remote_table procedure
Purpose Tochange the resolution objects for a table marked for SQL Remote
replication.
Syntax sp_modify_remote_tabletable_name,
[resolve_name,]
[old_row_name, ]
[remote_row_name ]
Argument Description
table_name
Atable marked for SQL Remote replication.
resolve_procedure
The name of the new stored procedure for carrying
outactions when a conflict occurs.
old_row_name
The name of the newtable for holding the values in
thetable when a conflict occurs.
remote_row_name
The name of the newtable for holding the values at
theremote database when a conflict-causing UPDATE
statementwas applied.
Seealso “sp_add_remote_tableprocedure” on page 384
“sp_remove_remote_tableprocedure” on page 430
“Managingconflicts” on page 165.
Description Each table in a database must be marked for replication by using
sp_add_remote_tablebefore it can be included in any SQL Remote
publications.
Thesp_modify_remote_table allows you to change the way in which
conflictresolution is carried out for update conflicts occurring on this table.
Thearguments are, in addition to the table name, the object names required
forcustom conflict resolution. Ifyou are implementing custom conflict
resolution,you must supply the names of two tables, and a stored procedure.
Thesp_modify_remote_table procedure does not check for the existence of
theconflict resolution arguments: youcan create them either before or after
markingthe table for replication.
Thetwo tables must have the same columns and data types as table
table_name
.
Example Thefollowing statement instructs SQL Remote to use the resolve_Cust
procedure,the old_Cust table, and the remote_Cust table to resolve update
conflictson the Customer table:
400