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) » SQL Remote » Creating SQL Remote systems » Publications and articles » Publish only some rows in a table

 

Publish 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.

 ♦  To 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, select the Publications folder.

  3. Choose 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, select 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. Select 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 choose a column from the dropdown list.

  10. Click Finish.

 ♦  To 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