Publishing only some rows using the SUBSCRIBE BY clause

Use the following procedure to create a publication using the SUBSCRIBE BY clause. For information about using the SUBSCRIBE BY clause and its alternative the WHERE clause, see Publish only some rows in a table.

 Create a publication using the SUBSCRIBE BY clause (Sybase Central)
  1. Use the SQL Anywhere 12 plug-in to connect to the consolidated database as a user with DBA authority.

  2. In the left pane, click the Publications folder.

  3. Click File » New » Publication.

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

  5. Click Next.

  6. In the Available Tables list, click a table. Click Add. Click Next.

  7. On the Available Columns tab, double-click the table's icon to expand the list of Available Columns. Click each column you want to publish and click Add. Click Next.

  8. Click Next.

  9. On the Specify SUBSCRIBE BY Restrictions page:

    1. Click a table in the Articles list.

    2. Click Column and click a column from the dropdown list.

  10. Click Finish.

 Create a publication using the SUBSCRIBE BY clause (SQL)
  1. Connect to the database as a user with DBA authority.

  2. Execute a CREATE PUBLICATION statement that includes a SUBSCRIBE BY clause.

 Examples
 See also