Chapter 7. SQL Remote Design for Adaptive Server Anywhere

Publishing data

This section describes how to create simple publications consisting of whole tables, or of column-wise subsets of tables; these tables are also called articles. You can perform these tasks using Sybase Central or with the CREATE PUBLICATION statement in Interactive SQL.

All publications in Sybase Central appear in the Publications folder. Any articles you create for a publication appear on the Articles tab in the right pane when a publication is selected.

Each publication can contain one or more entire tables, but partial tables are also permitted. A table can be subdivided by columns, rows, or both.

Publishing whole tables

The simplest publication you can make consists of a single article, which consists of all rows and columns of one or more tables. These tables must already exist.

To publish one or more entire tables (Sybase Central)

1.Connect to the database as a user with DBA authority.

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

3.From the File menu, choose New Publication. The Publication Creation wizard appears.

4.Type a name for the publication. Click Next.

5.On the Tables tab, select a table from the list of Available tables.

Click Add. The table appears in the list of Selected Tables on the right.

6.Optionally, you may add additional tables. The order of the tables is not important.

7.Click Finish.

To publish one or more entire tables (SQL)

1.Connect to the database as a user with DBA authority.

2.Execute a CREATE PUBLICATION statement that specifies the name of the new publication and the table you want to publish.

Example

93

Page 111
Image 111
Sybase DC38133-01-0902-01 Publishing data, Publishing whole tables, To publish one or more entire tables Sybase Central