Skip to content

Commit da6e9b2

Browse files
authored
Merge pull request #20638 from MaraSteiu/patch-14
Add restore guidance for MI (CDC jobs added manually)
2 parents f9f61eb + 80f13b8 commit da6e9b2

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

docs/relational-databases/track-changes/change-data-capture-and-other-sql-server-features.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,8 @@ This topic describes how the following features interact with change data captur
6161
`SQL Server cannot load database '%.*ls' because change data capture is enabled. The currently installed edition of SQL Server does not support change data capture. Either restore database without KEEP_CDC option, or upgrade the instance to one that supports change data capture.`
6262

6363
You can use [sys.sp_cdc_disable_db](../../relational-databases/system-stored-procedures/sys-sp-cdc-disable-db-transact-sql.md) to remove change data capture from a restored or attached database.
64+
65+
After restoring a database on Azure SQL Managed Instance, CDC will remain enabled, but you must ensure that the scan and cleanup jobs are added and running. You can manually add the jobs by running [sys.sp_cdc_add_job](https://docs.microsoft.com/sql/relational-databases/system-stored-procedures/sys-sp-cdc-add-job-transact-sql?view=sql-server-ver15).
6466

6567
## <a name="Contained"></a> Contained databases
6668
Change data capture is not supported in [contained databases](../../relational-databases/databases/contained-databases.md).

0 commit comments

Comments
 (0)