Home > Database > Mysql Tutorial > [转]使用SQLServer 2008的CDC功能实现数据变更捕获

[转]使用SQLServer 2008的CDC功能实现数据变更捕获

WBOY
Release: 2016-06-07 15:45:34
Original
1753 people have browsed it

USE AdventureWorks ; GO EXECUTE sys . sp_cdc_enable_table @source_schema = N'Person' , @source_name = N'ADDRESS' , @role_name = N'cdc_Admin' -- 可以自动创建 , @capture_instance = DEFAULT GO EXECUTE sys . sp_cdc_enable_table @source_schema

USE AdventureWorks;

GO

EXECUTE sys.sp_cdc_enable_table

    @source_schema = N'Person'

  , @source_name = N'ADDRESS'

  , @role_name = N'cdc_Admin'--可以自动创建

  , @capture_instance=DEFAULT

GO

EXECUTE sys.sp_cdc_enable_table

    @source_schema = N'Person'

  , @source_name = N'Contact'

  , @role_name = N'cdc_Admin'--可以自动创建

  , @capture_instance=DEFAULT

GO

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template