sp_add_remote_table procedure
Purpose Tomark a table for SQL Remote replication.
Syntax sp_add_remote_tabletable_name,
[resolve_procedure,]
[old_row_name, ]
[remote_row_name ]
Argument Description
table_name
Thetable to be marked for SQL Remote replication.
resolve_procedure
The name of a stored procedure that carries out
actionswhen a conflict occurs.
old_row_name
The name of a table holding the values in the table
whena conflict occurs.
remote_row_name
Thename of a table holding the values at the remote
databasewhen a conflict-causing UPDATE statement
wasapplied.
Authorization Youmust be a system administrator to execute this procedure.
Seealso “sp_modify_remote_tableprocedure” on page 400
“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. After executing sp_add_remote_table, you can add the table
toa publication using the “sp_add_article procedure” on page 381 and the
“sp_add_article_colprocedure” on page 383.
Thesp_add_remote_table procedure calls sp_setreplicate, which flags the
tablefor replication. Thistells Adaptive Server Enterprise to put extended
informationinto the transaction log. Thisinformation includes the entire
beforeand after images of the row.
Thefirst argument is the name of the table to be marked for replication.
Theremaining three arguments are optional. Theyare object names required
onlyfor custom conflict resolution. Ifyou are implementing custom conflict
resolution,you must supply the names of two tables, and a stored procedure.
Thesp_add_remote_table procedure does not check for the existence of the
conflictresolution arguments: youcan create them either before or after
markingthe table for replication.
384