alter database replication definition

Changes an existing database replication definition.

Syntax

alter database replication definition db_repdef
with primary at data_server.database
{[{not replicate DDL} |
{replicate DDL [{with | without} {auto_update_table_list | auto_extend_table_list}]}] |
[not] replicate setname setcont |
[not] replicate {{SQLDML | DML_options} [in table_list]} |
[alter owner from current_table_owner to new_table_owner [for table_name]] |
[{add | remove} tables {setcont}]}
[with dsi_suspended]
[user username password pass]
setcont ::= [[in] ([owner1.]name1[, [owner2.]name2 [, ... ]])] | [in files ('file_path')]
setname ::= {tables | functions | transactions | system procedures}
Note: The term functions in setname refers to user-defined stored procedures or user-defined functions.

Parameters

Examples

Usage

  • Altering a database replication definition may desynchronize the primary and replication databases. See the Replication Server Administration Guide Volume 1 for instructions for resynchronizing databases.

  • SQL statement replication:
    • If you do not specify a filter in your replication definition, the default is the not replicate clause. Apply alter database replication definition to change the SQLDML filters. You can either specify one or multiple SQLDML filters in a replicate clause.

    • For more information about SQL statement replication see create database replication definition.

Related reference
create database replication definition
drop database replication definition