After you have created a publication, you can alter it by adding, modifying, or deleting articles, or by renaming the publication. If an article is modified, the entire specification of the modified article must be entered.
You can perform these tasks using Sybase Central or with the ALTER PUBLICATION statement.
Publications can be altered only by the DBA or the publication's owner.
Be careful. In a running MobiLink setup, altering publications may cause errors and can lead to loss of data. If the publication you are altering has any subscriptions, then you must treat this change as a schema upgrade. See Schema changes in remote clients.
Connect to the remote database as a user who owns the publication or as a user with DBA authority.
In the left pane, click the publication or article. The properties appears in the right pane.
Configure the properties.
Connect to the remote database as a user who owns the publication or as a user with DBA authority using the SQL Anywhere plug-in.
Expand the Publications folder.
Select a publication.
Choose File » New » Article.
In the Create Article Wizard, do the following:
In the Which Table Do You Want To Use For This Article list, select a table. Click Next.
Click Selected Columns and select the columns. Click Next.
In the You Can Specify a WHERE Clause For This Article pane, enter an optional WHERE clause. Click Finish
Connect to the database as a user who owns the publication or as a user with DBA authority using the SQL Anywhere plug-in.
Expand the Publications folder.
Right-click the publication and choose Delete.
Click Yes.
Connect to the remote database as a user who owns the publication or as a user with DBA authority.
Execute an ALTER PUBLICATION statement.
The following statement adds the customer table to the pub_contact publication.
ALTER PUBLICATION pub_contact ( ADD TABLE customer ) |
See also the ALTER PUBLICATION statement [MobiLink] [SQL Remote].
Discuss this page in DocCommentXchange. Send feedback about this page using email. |
Copyright © 2009, iAnywhere Solutions, Inc. - SQL Anywhere 11.0.1 |