You create publications based on existing tables in the consolidated database.
Use the following procedures to create publications that consist of all the columns and rows in a table.
Use the SQL Anywhere 12 plug-in to connect to the consolidated database as a user with DBA authority.
In the left pane, select the Publications folder.
Choose File » New » Publication.
In the What Do You Want To Name The New Publication field, type a name for the publication. Click Next.
In the Available Tables list, select a table. Click Add.
Connect to the consolidated 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].
For example, the following statement creates a publication that publishes the entire Customers table:
CREATE PUBLICATION PubCustomers ( TABLE Customers );
The following statement creates a publication that publishes the entire SalesOrders, SalesOrderItems, and Products tables:
CREATE PUBLICATION PubSales ( TABLE SalesOrders, TABLE SalesOrderItems, TABLE Products );
Discuter à propos de cette page dans DocCommentXchange.
|Copyright © 2010, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.0|