Marking data for replication

You can mark databases, tables, and functions for replication using sp_reptostandby, sp_setreptable, and sp_setrepproc.

NoteSee the Replication Server Heterogeneous Replication Guide for non-ASE data servers.

When the database is marked by sp_reptostandby:

When the database is not marked by sp_reptostandby, DDL is not replicated for the marked tables and functions.

Table 12-1 summarizes how data is replicated.

Table 12-1: Data replication

Data marked by

Table and function subscriptions only

Database subscription only

Table, function, and database subscriptions coexist

sp_setreptable and sp_setrepproc

  • Replicate marked data

  • Do not replicate DDL

  • Replicate marked data

  • Do not replicate DDL

  • Replicate marked data

  • Do not replicate DDL

sp_reptostandby

  • Check rep_as_standby

  • Do not replicate DDL

  • Replicate all data

  • Replicate DDL (optional)

  • Check rep_as_standby

  • Replicate DDL (optional)

sp_setreptable, sp_setrepproc, and sp_reptostandby

  • Check rep_as_standby

  • Do not replicate DDL

  • Replicate all data

  • Replicate DDL (optional)

  • Check rep_as_standby

  • Replicate DDL (optional)