- Newest
- Most votes
- Most comments
Dear AWS Customer
Thank you for your question.
Unfortunately, during any restores in AWS like snapshot restores, point-in-time restores, and SQL Server Native restores from S3 the CDC is disabled and metadata is dropped during the restore , there is no direct way of accessing that data. But once any restore completed you can re-enable CDC and re-specify tables to track.
[+] https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Appendix.SQLServer.CommonDBATasks.CDC.html
For enabling the CDC for a DB instance, run the msdb.dbo.rds_cdc_enable_db stored procedure.
exec msdb.dbo.rds_cdc_enable_db 'database_name'
To track the tables :
exec sys.sp_cdc_enable_table
@source_schema = N'source_schema'
, @source_name = N'source_name'
, @role_name = N'role_name'
For viewing the CDC configuration for your tables
exec sys.sp_cdc_help_change_data_capture -- 'schema_name', 'table_name’;
I can understand the inconvenience this might bring. It is unfortunately a trade off for RDS being a managed service with limitations and constraints, regrettably this is one of them. I would take this as a possible feature request for our internal teams to review.
Relevant content
- asked 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 9 days ago
- AWS OFFICIALUpdated 2 years ago