sp_replication_path

Configures and manages alternate replication paths between a primary database and Replication Server.

Syntax

sp_replication_path 'dbname', {
'add' 'physical_path', 'repserver_name', 'rs_username', 'rs_password' |
'add', 'logical', 'logical_path', 'physical_path' | 
'drop', 'physical_path' |
'drop', 'logical', 'logical_path', [,'physical_path'] |
'bind', '{table | sproc | filter}', '[table_owner].object_name', 'path_name' |
'unbind', '{table | sproc | filter | path}', 'object_name', {'path_name' | all} |
'config', 'path_name', 'config_parameter', 'config_value' |
'list'[, 'all | table | sproc | filter' [, 'object_name']]

Parameters

Examples

Usage

  • You must create an alternate primary connection between the primary database and Replication Server and associate the connection to the alternate RepAgent replication path from the primary database to the Replication Server before you can bind objects to the path. See Replication Server > Performance Tuning > Multi-Path Replication.
  • You can bind tables and stored procedures to physical or logical paths that you create for multipath replication.
  • Any object that you bind to a replication path always follows the same path during replication.
  • You can bind a table, stored procedure, or filter to several paths. During replication, the table, stored procedure, or filter replicates through all the paths you specified.
  • You can set the distribution by filter model and then bind a table or stored procedre to a replication path. Similarly, you can set the distribution by object binding model and then bind a filter to a path. However, the replication of the bound object or filter does not take effect until you enable the corresponding distribution model. For example, if you attempt to bind a table to a replication path while the distribution model is filter:
    > sp_replication_path primdb, bind, 'table', 'T2', 'PP1'
    go
    You see:
    Warning: Under the current 'filter' distribution model this binding will be ignored.
    The table 'T2' is bound to path 'PP1'.
  • You cannot add an alternate path named "n/a".

Permissions

sp_replication_path requires “sa” or “dbo” permission or replication_role.