Replicating tables and functions

You can use MSA capabilities to replicate particular tables or functions. The basic steps are:

  1. Mark tables, stored procedures, and database for replication and create the database replication definition.

    In this example, we are replicating table1 and table2 only. You can identify particular tables in either of two ways:

  2. Create the database subscription. To subscribe without materialization, see “Replicating the database”. To subscribe using bulk materialization, see “Materialization”.

NoteYou can also use sp_reptostandby to mark the database and then create table replication definitions and subscriptions—without creating a database replication definition. This method eliminates the need to mark individual tables, yet allows you to select and replicate partial tables. The database connection parameter rep_as_standby must be on.