当我启用数据库时,表是否会在SQL Server中自动启用CDC?
我创建了一个数据库并在其中创建了一个表。 之后,我使用execss.sp_cdc_enable_db
启用了CDC。当我检查时,为CDC启用了数据库,但是该数据库内的表不适合自动启用。
我知道,我们可以一对一地启用CDC作为表格,但我想这样做:当我在任何数据库上启用CDC时,它内部的表将自动启用CDC。
在为数据库启用CDC时,我是否缺少某些内容,还是在存储过程中(上)本身是否应该还有其他参数?
I have created a database and created a table in it.
After that, I enabled CDC using exec sys.sp_cdc_enable_db
for the whole database. When I checked, the database was enabled for CDC but the tables inside this database were not enabled for CDC automatically.
I know, we can enable CDC for tables one-by-one but I want to do that: When I enable CDC on any database, the tables inside it will automatically be enabled for CDC.
Am I missing something while enabling CDC for the database or should there be some other parameter in the stored procedure (above) itself?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
更改数据捕获 - 启用表
Change Data Capture - Enable For a Table