-- ====
-- Enable Database for CDC template
-- ====
USE MyDB
GO
EXEC sys.sp_cdc_enable_db
GO
-- ====
-- Enable Database for CDC template
-- ====
USE MyDB
GO
EXEC sys.sp_cdc_enable_db
GO
Copy to Clipboard
Copied!
Toggle word wrap
Toggle overflow
-- ====
-- Enable a Table Specifying Filegroup Option Template
-- ====
USE MyDB
GO
EXEC sys.sp_cdc_enable_table
@source_schema = N'dbo',
@source_name = N'MyTable',
@role_name = N'MyRole',
@filegroup_name = N'MyDB_CT',
@supports_net_changes = 0
GO
-- ====
-- Enable a Table Specifying Filegroup Option Template
-- ====
USE MyDB
GO
EXEC sys.sp_cdc_enable_table
@source_schema = N'dbo',
@source_name = N'MyTable',
@role_name = N'MyRole',
@filegroup_name = N'MyDB_CT',
@supports_net_changes = 0
GO
Copy to Clipboard
Copied!
Toggle word wrap
Toggle overflow
-- ====
-- Verify the user of the connector have access, this query should not have empty result
-- ====
EXEC sys.sp_cdc_help_change_data_capture
GO
-- ====
-- Verify the user of the connector have access, this query should not have empty result
-- ====
EXEC sys.sp_cdc_help_change_data_capture
GO
Copy to Clipboard
Copied!
Toggle word wrap
Toggle overflow