SQL Remote User's Guide
Tutorials for Adaptive Server Anywhere Users
Tutorial: Adaptive Server Anywhere replication using Sybase Central
Setting up a 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 SalesRep and some of the rows of the Customer table.
To add a publication
Select the Publications folder in the left pane.
From the File menu, choose New
The Publication Creation wizard appears.
Name the publication SalesRepData.
On the Tables tab, select SalesRep from the list of Available Tables. Click Add.
The table appears in the list of Selected Tables on the right.
Select Customer from the list of Available Tables. Click Add.
On the SUBSCRIBE BY Restrictions tab, select the Customer table and enter the expression rep_key.
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 SalesRepData publication for the remote database user field_user.
To add a subscription
Open the Publications folder and select the SalesRepData publication in the left pane.
Click the SQL Remote Subscriptions tab in the right pane.
From the File menu, choose New
The SQL Remote Subscription Creation wizard appears.
Choose to subscribe field_user. Enter a Subscription value of rep1 and click Finish.
The subscription value is an expression that matches the Subscribe By expression in the publication. In a later step, the field_user user ID is assigned a rep_key value of rep1.
You have now set up the consolidated database.