A table can be replicated locally, to another database on the same server. In this example, on the server TERRIER, the pubs..titles table will be replicated to the localdest database.
The following example assumes that the replication topology has been configured following the example in Setting Up A Replication Topology, earlier in this chapter.
For this example, this will be used as the destination database. For information on using SQL Enterprise Manager to create a database, see Chapter 6, Managing Databases.
This authorizes the server to replicate to itself.
This does not subscribe the database to any publications, but it does authorize the database to subscribe.
allauthors
Publishing a table from the pubs database.
This replication example is now set up. If the default synchronization setting for the publication allauthors 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.