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

SQL Anywhere 11.0.1 (中文) » SQL Remote » SQL Remote 复制设计 » SQL Remote 复制设计和设置 » 发布和项目

 

变更发布

可通过添加、修改或删除项目或者通过重命名发布来对发布进行变更。

小心

在运行中的 SQL Remote 系统中变更发布可能会导致复制错误和复制系统中的数据丢失。请参见升级和重新同步

♦  变更发布 (Sybase Central)
  1. 以拥有该发布的用户身份或具有 DBA 权限的用户身份连接到数据库。

  2. 在左窗格中,选择 [发布] 文件夹。

  3. 右击想要变更的项目并选择 [属性] 以编辑发布。

♦  变更发布 (SQL)
  1. 以拥有该发布的用户身份或具有 DBA 权限的用户身份连接到数据库。

  2. 执行 ALTER PUBLICATION 语句。

    例如,以下语句会将 Customers 表添加到 PubContacts 发布中。

    ALTER PUBLICATION PubContacts (
       ADD TABLE Customers
    );

    例如,以下语句会在 PubContacts 发布中重新定义 Customers 项目。

    ALTER PUBLICATION PubContacts (
       ALTER ARTICLE Customers ( name, surname )
    );
另请参见