- Newest
- Most votes
- Most comments
To perform Change Data Capture (CDC) from an on-premises SQL Server to AWS RDS SQL Server, you can use a combination of native SQL Server tools and AWS Database Migration Service (DMS). Here's a step-by-step guide:
-
Prepare the source (on-premises) SQL Server:
- Enable CDC on the source database
- Ensure the SQL Server Agent is running
- Create a CDC capture job
-
Prepare the target AWS RDS SQL Server:
- Create an RDS instance for SQL Server
- Configure security groups and network access
- Set up RDP access to the RDS instance
-
Perform initial data migration:
- Take a full backup of the on-premises database
- Upload the backup file to Amazon S3
- Download the backup file to the RDS SQL Server instance
- Restore the database on RDS using native SQL Server restore
-
Set up AWS DMS for ongoing replication:
- Create a DMS replication instance
- Configure source and target endpoints
- Create a migration task with CDC enabled
-
Start the DMS task:
- Begin the full load and CDC process
- Monitor the migration progress
-
Validate the data:
- Use DMS data validation features
- Perform application-level testing
-
Cutover:
- Stop writes to the source database
- Allow DMS to catch up with any remaining changes
- Switch your application to use the RDS SQL Server instance
This process combines the initial full load using native SQL Server backup and restore for optimal performance, followed by ongoing replication using AWS DMS. This hybrid approach provides the benefits of native tools for the initial migration and the flexibility of DMS for continuous replication.
Remember to configure the necessary permissions, network connectivity, and security settings throughout the process. Also, ensure that you have sufficient storage and compute resources on both the source and target systems to handle the migration workload.
Sources
Migrating an on-premises database to Amazon RDS Custom for SQL Server - Amazon Relational Database Service
Migrating SQL Server Databases to Amazon RDS for SQL Server - Database Migration Guide
Migrating SQL Server - AWS Prescriptive Guidance
Relevant content
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago
- How can I capture information about a deadlock on my Amazon RDS DB instance that runs on SQL Server?AWS OFFICIALUpdated 24 days ago