简体   繁体   中英

Enabling CDC in SQL Server 2005 won't work?

I am trying to use AWS replicate following this tutorial - https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.SQLServer.html#CHAP_Source.SQLServer.CDC.Publication .

Using this code on a 2005 Microsoft SQL table

exec msdb.dbo.rds_cdc_enable_db 'databasename';

Results in

Could not find stored procedure 'msdb.dbo.rds_cdc_enable_db'.

This is the driver currently

MS SQL Server / SQL Server (Old driver, jTDS)

Any idea on how to overcome this issue?

CDC is not available in SQLServer 2005. It's in 2008 onward (enterprise edition until 2016 SP1, where it's also available in standard edition)

You need to specify the database name instead of table name..

exec msdb.dbo.rds_cdc_enable_db 'DB_name'

Use trigger as an alternative to CDC. as mentioned by geofftnz, You can only use CDC on version 2008 and up. btw, SQL Server 2005 is out of support, you maybe need to upgrade to higher version of SQL Server. check the link for supported version of RDS SQL Server version here

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM