create replication filter

Creates a replication filter object that defines conditions that RepAgent applies to a table in the Adaptive Server database.

The Adaptive Server RepAgent uses the replication filter at the primary database to determine if the data in a log record meets the criteria to send the data to the destination for any of the paths to which the filter is bound.After you bind a filter to a replication path, RepAgent only replicates the data that satisfies the filter conditions, through the path.

Syntax

create replication filter filter_name on table_name
as filter clause

Parameters

Examples

Usage

  • You can create a replication filter only for a table in the primary database you are replicating from.
  • You must create the filter for a table in the database that contains the table.
  • Execute create replication filter on the primary Adaptive Server database where you want to apply the filters on the connections to the Replication Server.
  • Replication filters you create for a database must have a unique name within that database.
  • You must drop a replication filter before you create a new one of the same name.
  • You must enclose search condition strings in double quotations—" ".
  • You cannot combine create replication filter statements with other statements in a single batch.
  • Replication filters must not contain subqueries, order by, group by or having clauses.
  • Replication filters must not contain aggregate functions, user defined functions, functions that access system tables, or nonmaterialized columns.
  • You cannot create a replication filter on a column with the datatype: text, unitext, rawobject, image, or xtype (java classes).
  • To configure multiple replication paths, see the Replication Server Administration Guide Volume 2 > Performance Tuning > Multi-Path Replication.
  • Replication Server replicates create replication filter in warm standby applications.

Permissions

create replication filter requires “create object” permission.