Repstance allows flexibility to determine a set of tables, which are to be captured. The tables for DML and DDL operations are specified by the different parameters.
The following parameters are used for DML replication:
The following parameters are used for DDL replication:
Note – These criteria are mutually exclusive. The table will only be replicated in the case that the name matches the “include” criteria and does not match the “exclude” criteria.
The table is specified in schema _name . table_name format. In order to specify the list of the tables, each table must be separated by comma. The % symbol may be used in order to match any number of characters. It may also be used in both schema _name and table_name parts.
The following examples show various ways of defining tables:
dbo.customers,dbo.employees
dbo.%
%.rep%,%.tmp%
report.%#
The following examples show how to use the DML/DDL parameters:
dmlinclude=dbo.%
dmlexclude=dbo.rep%
dmlinclude=cap1.%,cap2.%,cap3.%
dmlexclude=cap1.report1
dmlinclude=dbo.%
ddlinclude=dbo.%
ddlinclude=report.%
These parameters influence the newly created tables as well. The description below shows the capture behaviour of the tables created:
Tables that match DML criteria | Tables that match DDL criteria | Capture Behaviour |
true | true | This create statement is captured. Any further DML statements will be captured as well |
true | false | This create statement is not captured. No DML statements will be captured |
false | true | This create statement is captured. DML statements are not captured. However, any further DDL statements are captured |
false | false | This create statement is not captured. Neither DML or DDL statements will be captured |
Next page:
Initial Load