Table of Contents

Search

  1. Preface
  2. Data Replication Overview
  3. Understanding Data Replication
  4. Sources - Preparation and Replication Considerations
  5. Targets - Preparation and Replication Considerations
  6. Starting the Server Manager
  7. Getting Started with the Data Replication Console
  8. Defining and Managing Server Manager Main Servers and Subservers
  9. Creating and Managing User Accounts
  10. Creating and Managing Connections
  11. Creating Replication Configurations
  12. Materializing Targets with InitialSync
  13. Scheduling and Running Replication Tasks
  14. Implementing Advanced Replication Topologies
  15. Monitoring Data Replication
  16. Managing Replication Configurations
  17. Handling Replication Environment Changes and Failures
  18. Troubleshooting
  19. Data Replication Files and Subdirectories
  20. Data Replication Runtime Parameters
  21. Command Line Parameters for Data Replication Components
  22. Updating Configurations in the Replication Configuration CLI
  23. DDL Statements for Manually Creating Recovery Tables
  24. Sample Scripts for Enabling or Disabling SQL Server Change Data Capture
  25. Glossary

Supported DDL Operations for Microsoft SQL Server Sources

Supported DDL Operations for Microsoft SQL Server Sources

The Extractor for Microsoft SQL Server sources can process the following DDL operations:
  • ALTER TABLE
    table_name
    ADD
    column_name
    datatype
    [IDENTITY] [NULL|NOT NULL] [UNIQUE]
  • ALTER TABLE
    table_name
    ADD CONSTRAINT
    constraint_name
    PRIMARY KEY {CLUSTERED|NONCLUSTERED}
  • ALTER TABLE
    table_name
    ALTER COLUMN
    column_name
    datatype
    [NULL|NOT NULL]
  • ALTER TABLE
    table_name
    DROP COLUMN
    column_name
  • ALTER TABLE
    table_name
    DROP CONSTRAINT
    constraint_name
  • CREATE [UNIQUE] [CLUSTERED] INDEX
    index_name
    ON
    table_name
    (
    column_name
    )
  • CREATE TABLE
    table_name
    (
    column_name
    datatype
    [IDENTITY] [NULL|NOT NULL] [UNIQUE])
  • DROP INDEX
    index_name
    ON
    table_name
  • DROP TABLE
    table_name
  • SELECT * INTO
    new_table_name
    FROM
    existing_table_name
  • TRUNCATE TABLE
    table_name
  • Data Replication incorrectly replicates a SELECT * INTO operation if the source columns have LOB datatypes such as IMAGE, NTEXT, NVARCHAR(MAX), TEXT, VARBINARY(MAX), and VARCHAR(MAX).
  • Data Replication can replicate DDL operations that include identity columns. When replicating these DDL operations to Oracle targets, which do not use identity columns, Data Replication replaces identity columns with standard table columns.
  • Microsoft SQL Server allows TRUNCATE TABLE operations only on tables for which SQL Server Change Data Capture (CDC) is disabled. If you need to truncate a source table from which Data Replication extracts data, you must perform the following steps:
    1. Stop the Extractor task.
    2. Manually disable SQL Server CDC for the table that you want to truncate. Do not disable CDC at the database level.
      While SQL Server CDC is disabled, Data Replication does not process DML changes that occur on the table.
    3. Perform the TRUNCATE TABLE operation.
    4. Enable SQL Server CDC again.
    5. Start the Extractor task.
  • After a CREATE TABLE operation occurs on the source, you must manually enable Change Data Capture for this table to replicate change data to the target.

0 COMMENTS

We’d like to hear from you!