Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 12.0.0 (Français) » MobiLink - Client Administration » SQL Anywhere clients for MobiLink » SQL Anywhere clients » Publishing data


Publishing only some columns in a table

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.

  • If you create two publications that include the same table with different column subsets, then you may only create a synchronization subscription for one of them.

  • An article must include all the primary key columns in the table.

 ♦  To publish only some columns in a table (Sybase Central)
  1. Connect to the remote database as a user with DBA authority using the SQL Anywhere 12 plug-in.

  2. Open the Publications folder.

  3. Choose File » New » Publication.

  4. In the What Do You Want To Name The New Publication field, enter a name for the new publication. Click Next.

  5. Click Next.

  6. On the Available Tables list, select a table. Click Add.

  7. Click Next.

  8. In the Available Columns list, expand the list of available columns. Select a column and click Add.

  9. Click Finish.

 ♦  To publish only some columns in a table (SQL)
  1. Connect to the remote database as a user with DBA authority.

  2. Execute a CREATE PUBLICATION statement that specifies the publication name and the table name. List the published columns in parenthesis following the table name.

    See CREATE PUBLICATION statement [MobiLink] [SQL Remote].