alter request function replication definition

Changes the function replication definition created by the create request function replication definition command.

Syntax

alter request function replication definition repdef_name
        {with replicate function named ‘func_name’ |
        add @param_name datatype[, @param_name datatype]… |
        add searchable parameters @param_name[, @param_name]… |
        send standby {all | replication definition} parameters}
         [with DSI_suspended]

Parameters

Examples

Usage

  • Use alter request function replication definition to change an existing request function replication definition. You can add replicated and searchable parameters, select which parameters to send to the warm standby, and specify a different name for the stored procedure to execute at the replicate database.

  • alter request function replication definition can alter only the replication definition created with the create request function replication definition command.

  • When you change a function replication definition, the name, parameters, and datatypes that you specify for the function replication definition must match the stored procedure that you are replicating. Only the parameters specified in the function replication definition are replicated.

  • Multiple function replication definitions for the same stored procedure must have the same parameter list. If you add a new parameter, the new parameter is automatically added to all the function replication definitions created for that stored procedure.

  • You must execute the alter request function replication definition command at the primary Replication Server where you created the function replication definition.

  • A parameter name cannot appear more than once in any clause.

  • When adding parameters, you must instruct Replication Server to coordinate alter request function replication definition with distributions for the function replication definition. In addition, you must instruct Replication Server to coordinate changes to stored procedures and replicatim definitions.

    See Replication Server Administration Guide Volume 1 > Managing Replicated Tables > Replication Definition Change Request Process to alter replication definitions.

  • Use the with replicate function named clause to specify the stored procedure name you want to execute at the replicate database. See create request function replication definition.

For more information about altering a request function replication definition, see the Replication Server Administration Guide Volume 1.

Permissions

alter request function replication definition requires “create object” permission.

Related reference
alter function string
alter applied function replication definition
create applied function replication definition
create request function replication definition
drop function replication definition
rs_send_repserver_cmd
rs_helprepversion