Replicating a Table

Now that the basic replication relationships between servers have been established by the preceding example, we will show how easy it is to set up replication of a table from one server to another. In this example, the server TERRIER will publish the titles and publishers tables from the pubs database, and the server COLLIE will subscribe to them.

    To replicate tables from TERRIER to COLLIE
  1. Publish the titles and publishers tables by creating the publication newpub.

  2. Subscribe the incollie database on COLLIE to the newpub publication from TERRIER.

This replication example is now set up. If the default synchronization setting for the publication newpub was not changed, synchronization will occur within five minutes. Synchronization will copy the schema and data from the published tables to the destination database. After that, replication of changes to table data will occur as changes are made.