Replication Across Engines: What to Use, When, and How to Mitigate Limitations | SQLYARD

Replication Across Engines: What to Use, When, and How to Mitigate Limitations


SQL Server 2019 • 2022 • 2025 • Azure SQL MI

Data replication underlies most modern database systems: ensuring uptime through high availability, preparing for disasters, feeding analytics and BI pipelines, supporting migrations, or serving global multi-region applications. The challenge is that not all replication tools and strategies behave the same way. Each carries distinct trade-offs across latency, directionality, engine compatibility, schema handling, conflict resolution, operational complexity, and cost.

Each major relational database engine (Oracle, SQL Server, MySQL, PostgreSQL) uses its own internal mechanisms: redo logs, transaction logs, binary logs, and write-ahead logs. Cross-engine replication amplifies data type mismatches. Common examples include SQL Server NVARCHAR(MAX) versus PostgreSQL TEXT, Oracle NUMBER versus SQL Server DECIMAL, and MySQL JSON versus SQL Server JSON stored as NVARCHAR. These mismatches require explicit handling before any replication solution can be trusted in production.

This guide covers native SQL Server replication options, eight decisions that shape any replication architecture, a tool-by-tool comparison with SQL Server compatibility, real-world scenarios, and a ranked recommendation table.

1

Native SQL Server Options

Beginner

When the problem can be solved natively within SQL Server, start here before introducing external tooling. Native options carry lower operational overhead and benefit from tight integration with SQL Server Agent, Query Store, and monitoring DMVs.

Start native first. Native SQL Server replication covers the majority of same-engine scenarios. External tools become necessary for cross-engine targets, active-active with custom conflict logic, or broad connector ecosystems.

Transactional Replication

Log-based, near-real-time replication between SQL Server instances. The Log Reader Agent reads committed transactions from the publisher’s transaction log; the Distribution Agent delivers them to subscribers in the same order and within the same transaction boundaries. Appropriate for reporting offload, read scale-out, and low-latency data distribution. Subscribers are treated as read-only by default.

Peer-to-peer transactional replication extends this to multi-node scale-out where any node can accept writes and changes propagate to all other nodes. SQL Server 2025 introduced TDS 8.0 support for peer-to-peer topologies, enabling TLS 1.3 encryption between instances. Peer-to-peer replication is available only in Enterprise edition. Conflict detection is not enabled by default and must be planned explicitly; application-level write partitioning is the most reliable prevention strategy.

Merge Replication

Designed for occasionally connected scenarios and multi-site writes, with built-in conflict detection and configurable resolution rules. Merge replication adds a rowguid column to every participating table for row tracking. Higher overhead than transactional replication for typical OLTP workloads, and best suited to distributed environments where nodes cannot remain continuously connected. Merge replication is fully supported in SQL Server 2022 and 2025.

Always On Availability Groups

A high availability and disaster recovery solution, not a cross-engine replication tool. AGs support readable secondaries for reporting offload and distributed AGs for cross-region topologies. AGs do not provide schema mapping across different engine types. They are the preferred solution for SQL Server HA/DR when compared to older alternatives.

Change Data Capture (CDC)

Records row-level inserts, updates, and deletes into change tables under the cdc schema by reading the transaction log asynchronously. CDC must be enabled at two levels: first at the database level using sys.sp_cdc_enable_db, then at the table level using sys.sp_cdc_enable_table. Each enabled database gets two SQL Server Agent jobs: a capture job that polls the log and a cleanup job that purges change tables based on a configurable retention period (default three days). CDC is available in Enterprise, Developer, and Standard editions (Standard from SQL Server 2016 SP1 onward). Not available in Express edition.

-- Enable CDC at the database level
USE YourDatabase;
GO
EXEC sys.sp_cdc_enable_db;
GO

-- Enable CDC on a table
EXEC sys.sp_cdc_enable_table
    @source_schema = N'dbo',
    @source_name   = N'Orders',
    @role_name     = N'cdc_reader',
    @capture_instance   = N'dbo_Orders',
    @supports_net_changes = 1;
GO

Change Tracking (CT)

A lighter alternative to CDC that records which rows changed without preserving before and after values. Change Tracking answers “what changed” rather than “what were the values.” Lower storage overhead than CDC, but requires the application to retrieve current row values separately. Suited to app-level sync, incremental loads, and scenarios where every table has a primary key and computed column capture is not required.

When native is not enough. Native SQL Server options cover same-engine topologies, HA/DR, classic reporting replicas, and CDC/CT-based pipeline feeds. For cross-engine migrations, active-active with custom conflict logic, or destinations outside the SQL Server ecosystem, external tools are required.
2

Eight Decisions That Shape Replication Architecture

Intermediate

Before selecting any tool, these eight questions determine which options are viable.

#DecisionKey Questions
1Latency targetSub-second required, or are seconds and minutes acceptable? Batch loads?
2DirectionalityOne-way, bidirectional, or multi-master?
3Engine compatibilitySame engine (homogeneous) or cross-engine (heterogeneous)?
4Schema evolutionHow does DDL flow from source to target? Who coordinates schema changes?
5Conflict handlingIf multiple nodes can write, what are the detection and resolution rules?
6FilteringFull database, selected tables, or row/column subsets?
7Operational overheadWho installs, monitors, and recovers the replication pipeline?
8Cost and lock-inLicensing, infrastructure, and long-term people cost?
3

Oracle GoldenGate

Advanced
AttributeDetail
MechanismEnterprise log-based CDC; heterogeneous; bidirectional support
SQL Server as sourceSupported (transaction log capture)
SQL Server as targetSupported
Best forMission-critical, low-latency, active-active, complex topologies
Primary limitationLicensing cost and operational complexity

GoldenGate captures changes at the transaction log level, making it one of the few tools that genuinely supports low-latency active-active across heterogeneous engines. Schema drift across engines still requires explicit governance regardless of the tool. Watch data type mappings closely: XML and spatial types often require custom handling, and collation differences between SQL Server and Oracle must be resolved at design time, not at cutover.

Mitigations. Enable supplemental logging on the Oracle side. Establish tight DDL governance across both engines. Rehearse cutovers with real data volumes before go-live.
4

AWS Database Migration Service and Schema Conversion Tool

Intermediate
AttributeDetail
MechanismManaged full load plus CDC; SCT assists cross-engine schema mapping
SQL Server as sourceSupported; common path: on-premises to AWS RDS or Aurora
SQL Server as targetSupported
Best forOne-way migrations or hybrid sync with lower operational burden
Primary limitationNot designed for active-active; computed columns, triggers, and constraints often require manual handling

AWS DMS handles the full load phase followed by continuous CDC until cutover. The Schema Conversion Tool helps map types across engines but does not eliminate manual review for identity and sequence semantics, LOB types, and computed columns. Serverless DMS configurations carry additional quota and throughput limitations that require testing under production-representative load.

Mitigations. Pre-create target tables with exact type mappings rather than relying on DMS auto-creation. Run SCT before any migration begins. Right-size replication instances based on source transaction volume. Monitor task lag and cached change counts continuously during the CDC phase.
5

Debezium and Kafka

Advanced
AttributeDetail
MechanismOpen-source, log-based CDC connectors; change events published to Kafka topics
SQL Server as sourceSupported via the official Debezium SQL Server connector, which relies on SQL Server CDC being enabled on the source
SQL Server as targetNot a primary use case; Kafka consumers handle downstream writes
Best forReal-time streaming to multiple targets; event-driven architectures; replayability
Primary limitationMore moving parts than managed tools; at-least-once delivery semantics require idempotent consumers
SQL Server CDC prerequisite. The Debezium SQL Server connector depends on SQL Server CDC being enabled on the source database and relevant tables. CDC must be configured and the SQL Server Agent must be running before the connector can function.

Debezium with Kafka is the strongest open-source choice for fan-out scenarios: one SQL Server source feeding multiple downstream targets simultaneously. Replayability from Kafka offsets provides a significant operational advantage during consumer failures. DDL changes require coordination because schema evolution in event streams can break downstream consumers if not managed through a schema registry.

Mitigations. Use a schema registry to version event schemas. Build idempotent sinks at all consumers. Design Kafka partition keys carefully to preserve ordering within a table. Use Debezium Server as a simpler alternative if Kafka cluster management is not feasible.
6

Quest SharePlex

Advanced
AttributeDetail
MechanismLow-impact streaming replication with conflict detection and resolution; compare and repair utilities
SQL Server as sourceNot supported as a primary source
SQL Server as targetSupported in certain topologies; verify against current release notes
Best forMinimal-downtime Oracle-to-PostgreSQL migrations; cross-region PostgreSQL active-active; reporting offload with integrity checking
Primary limitationPrimary source coverage is Oracle and PostgreSQL; SQL Server is downstream only in limited configurations

SharePlex’s compare and repair tooling provides strong consistency verification across replicated environments, which is valuable for long-running migrations where silent drift is a risk. For SQL Server-centric environments, SharePlex is worth considering only when SQL Server is a downstream target and the primary source is Oracle or PostgreSQL.

7

DBConvert Streams

Intermediate
AttributeDetail
MechanismCDC-based replication and migrations; container-friendly; API-driven
SQL Server as sourceSupported
SQL Server as targetSupported
Best forStraightforward cross-engine sync or analytics feeds without building a Kafka stack
Primary limitationLess battle-tested than enterprise tools at extreme scale; POC recommended for high-volume CDC

DBConvert Streams sits between DIY Debezium/Kafka and full enterprise tools. It handles heterogeneous sync without the infrastructure overhead of a Kafka cluster. Suitable for mid-scale scenarios where operational simplicity is a higher priority than maximum throughput.

Mitigations. Pre-map LOB and computed column types before starting. Monitor lag and backpressure dashboards. Validate type fidelity with a representative dataset before production cutover.
8

Qlik Replicate

Intermediate
AttributeDetail
MechanismEnterprise replication and ingestion with real-time CDC; wide connector set; Kafka integrations
SQL Server as sourceSupported; AG-aware configurations available
SQL Server as targetSupported
Best forPolished UI, monitoring, and a supported path from SQL Server into warehouses or Kafka with minimal custom code
Primary limitationLicensing cost; DDL discipline and endpoint tuning still required

Qlik Replicate is a strong choice when the team needs built-in monitoring and auditing, a broad connector ecosystem, and vendor support. The AG-aware source configuration prevents issues that arise when a failover occurs during active CDC tasks.

9

SymmetricDS

Advanced
AttributeDetail
MechanismOpen-source; multi-master, filtered synchronization; works over low-bandwidth or intermittent links; trigger-based or log-based depending on the database
SQL Server as sourceSupported
SQL Server as targetSupported
Best forBudget-constrained topologies; hybrid or edge environments; multi-master across sites with unreliable connectivity
Primary limitationTrigger-based mode adds overhead under heavy OLTP; requires more operational tuning than managed tools
Conflict planning is mandatory. Multi-master topologies with SymmetricDS require conflict rules to be defined before go-live. Simulate conflict scenarios in a staging environment that mirrors production write patterns.
10

Striim

Intermediate
AttributeDetail
MechanismCDC platform with SQL Server readers; targets include Snowflake and other warehouses; managed and self-hosted options
SQL Server as sourceSupported via MS SQL Reader or MSJet for CDC
SQL Server as targetSupported
Best forManaged-feel CDC stack feeding warehouses or streams with sub-second latency targets
Primary limitationLicensing; topology and backpressure design still required

Striim provides a near-managed experience for SQL Server to warehouse pipelines, particularly Snowflake. Choose between the MS SQL Reader for broad compatibility and the MSJet reader for higher throughput scenarios, and validate end-to-end latency to the warehouse or stream under realistic load before committing to a topology.

11

Real-World Scenarios

Intermediate

SQL Server on-premises to AWS RDS or Aurora SQL Server

Use AWS DMS with SCT for one-way migration with minimal operational overhead. Pre-create tables to enforce exact type mappings, then run CDC until cutover window. Monitor task lag and cached change counts as the signal to begin the final cutover.

SQL Server OLTP to Snowflake or another cloud warehouse

Use Qlik Replicate or Striim for managed pipelines with monitoring and vendor support. Use Debezium with Kafka when open-source and multi-target fan-out are priorities and the team has Kafka expertise.

SQL Server multi-site writes

Prefer native peer-to-peer transactional replication for same-engine SQL Server topologies. Use SymmetricDS when the topology includes mixed engines or sites with intermittent connectivity. Design conflict prevention through write partitioning before going live; do not rely on detection alone.

SQL Server to PostgreSQL migration

Start with AWS DMS with SCT or DBConvert Streams. Validate identity and sequence handling explicitly: SQL Server identity columns do not map cleanly to PostgreSQL sequences without manual review. Validate LOB type handling with production-representative data before cutover.

12

Common Failure Modes and Mitigations

Intermediate
Failure ModeDescriptionMitigation
Data type mismatches Identity vs sequences, GUID vs UUID, JSON handling, LOB type differences across engines Pre-create target tables with explicit type mappings or run SCT ahead of migration
Silent schema drift DDL applied in production without coordination stalls or breaks CDC pipelines Gate DDL changes through a schema review process; version schemas; test tool behavior on DDL changes in staging
Bidirectional conflicts Concurrent writes to the same row from multiple nodes produce inconsistent results Define precedence rules (timestamp or source priority); prevent overlapping write domains; use tool-native conflict features where available
Lag and backpressure Replication falls behind under high write volume, causing growing latency or change table bloat Right-size replication compute; isolate replication I/O; filter high-churn tables that do not need replication; monitor lag metrics continuously
Operational blind spots Silent replication failures go undetected because no alerting is in place Add heartbeat rows to detect latency; configure lag dashboards; use exception queues to surface delivery failures; use compare and repair utilities periodically
13

Quick Decision Guide

Beginner
ScenarioRecommended Starting Point
Same-engine SQL Server HA/DR or read replicasAlways On Availability Groups or Transactional Replication
One-way SQL Server to AWSAWS DMS with SCT
SQL Server to many downstreams; event-driven architectureDebezium with Kafka
Enterprise pipelines with UI, monitoring, and support contractQlik Replicate or Striim
Heterogeneous sync without heavy infrastructureDBConvert Streams
Multi-master across sites with mixed engines or intermittent linksSymmetricDS
Oracle or PostgreSQL primary; SQL Server downstreamQuest SharePlex
14

Ranked Recommendations (SQL Server Context)

Intermediate
RankToolSQL Server SupportBest For
1Native: AG + Transactional ReplicationNativeHA/DR and read scale with minimal moving parts
2Oracle GoldenGateSource and targetEnterprise heterogeneous and active-active where budget allows
3Debezium + KafkaSourceStreaming pipelines and multi-target fan-out
4AWS DMS + SCTSource and targetOne-way migrations into AWS
5Qlik ReplicateSource and targetReal-time SQL Server to warehouse or Kafka with strong tooling
6StriimSource and targetManaged-feel CDC with sub-second latency targets
7DBConvert StreamsSource and targetMid-scale heterogeneous sync and migrations
8SymmetricDSSource and targetOpen-source multi-master across sites
9Quest SharePlexTarget only (limited)Strong for Oracle-to-PostgreSQL; consider only if SQL Server is downstream
15

SQL Server 2025 Replication Upgrade Note

Advanced
Breaking change on upgrade to SQL Server 2025. SQL Server 2025 introduced TDS 8.0 and defaults to the OLE DB v19 provider, which requires TrustServerCertificate=False and a trusted certificate. Replication components (Transactional, Snapshot, Peer-to-peer, and Merge) can fail after upgrading to SQL Server 2025 if the instance is configured as a publisher with a remote distributor and no trusted certificate is in place. Symptoms include replication continuing to succeed while publication changes fail, Replication Monitor in SSMS failing, and agent status becoming unavailable. Resolve by installing a trusted certificate on the distributor before upgrading the publisher.

This applies to all four native replication types. Review the SQL Server 2025 breaking changes documentation before any upgrade involving a remote distributor topology.


Discover more from SQLYARD

Subscribe to get the latest posts sent to your email.

Leave a Reply

Discover more from SQLYARD

Subscribe now to keep reading and get access to the full archive.

Continue reading