Quantcast
Channel: Forum SQL Server Database Engine
Viewing all articles
Browse latest Browse all 15889

Change Data Capture Gating Roles - Identifying & Explicitly Deleting

$
0
0

Disable Change Data Capture for a Database

says

... However, any gating roles created by change data capture will not be removed automatically andmust be explicitly deleted.

How does one do that please?  Assuming one has 'any gating roles created by change data capture'and therefore how would one know?

This is how CDC was set up:

use <db>

go

exec sys.sp_cdc_enable_db

go

exec sys.sp_cdc_enable_table @source_schema=N'dbo', @source_name=N'BRG_CORE', @role_name=N'cdc_audit', @filegroup_name=N'CDCAUDIT'

...

go

exec sys.sp_cdc_change_job @job_type=N'cleanup', @retention=43200 -- 30*24*60

go

I wish to revert, disable the above.


Martin Peter Clarke


Viewing all articles
Browse latest Browse all 15889

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>