You can create a publication that contains all the rows but only some of the columns of a table from Sybase Central or by listing the columns in the CREATE PUBLICATION statement.
To publish only some columns in a table (Sybase Central Admin mode)
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 Specify Tables tab, select a table from the list of Available Tables. Click Add. The table is added to the list of Selected Tables on the right.
On the Specify Columns tab, double-click the table's icon to expand the list of Available Columns. Select each column you want to publish and click Add. The selected columns appear on the right.
Click Finish.
To publish only some columns in a table (SQL)
Connect to the remote database as a user with DBA authority.
Execute a CREATE PUBLICATION statement that specifies the publication name and the table name. List the published columns in parenthesis following the table name.
The following statement creates a publication that publishes all rows of the id, company_name, and city columns of the customer table:
CREATE PUBLICATION pub_customer ( TABLE customer (id, company_name, city ) ) |
Send feedback about this page via email or DocCommentXchange | Copyright © 2008, iAnywhere Solutions, Inc. - SQL Anywhere 11.0.0 |