Introducing SQL Anywhere Studio
Tutorial: Replicating Data with SQL Remote
Lesson 2: Set up the consolidated database
This section describes how to add a publication to a database, and how to add a subscription to that publication for a user. The publication replicates all rows of the table department.
Add a publication
Open the Publications folder.
From the File menu, choose New
The Publication Creation wizard appears.
Name the publication DepartmentPub on the first page of the wizard. Click Next.
Select department from the list of Available Tables. Click Add.
The table appears in the list of Selected Tables on the right.
Click Finish to create the publication.
Each user ID that is to receive changes to a publication must have a subscription to that publication. Subscriptions can only be created for a valid remote user. You need to add a subscription to the DepartmentPub publication for the remote database user field.
Add a subscription
Open the Publications folder.
Click the SQL Remote Subscriptions tab in the right pane.
From the File menu, choose New
The Create SQL Remote Subscription for Remote User dialog appears.
Choose to create a submscription for the user field. Click Next
Click Finish.
You have now set up the consolidated database.
You can now create the remote database.