The simplest publication you can make consists of a set of articles, each of which contains all the rows and columns in one table. These tables must already exist.
Connect to the remote database as a user with DBA authority, using the SQL Anywhere plug-in.
Open the Publications folder.
From the File menu, choose New > Publication.
The Create Publication wizard appears.
Enter a name for the new publication. Click Next.
On the Tables tab, select a table from the list of Available Tables. Click Add. The table appears in the list of Selected Tables on the right.
Optionally, you may add additional tables. The order of the tables is not important.
Connect to the remote database as a user with DBA authority.
Execute a CREATE PUBLICATION statement that specifies the name of the new publication and the table you want to publish.
See CREATE PUBLICATION statement [MobiLink] [SQL Remote].
The following statement creates a publication that publishes the whole customer table:
CREATE PUBLICATION pub_customer ( TABLE customer )
The following statement creates a publication including all columns and rows in each of a set of tables from the SQL Anywhere sample database:
CREATE PUBLICATION sales ( TABLE customer, TABLE sales_order, TABLE sales_order_items, TABLE product )