July 20, 2011 at 12:32 pm
My database is a push subscriber in the replication process. Now I have to enable CDC to capture DML changes in my subscriber tables. I don't have access to publisher or ditributer to accomplish this in another way.
Step 1:
USE Mydatabase
GO
EXEC sys.sp_cdc_enable_db
GO
Step 2: Enable a Table Without Using a Gating Role
USE mydatabase
GO
EXEC sys.sp_cdc_enable_table
@source_schema = N'dbo',
@source_name = N'MyTable',
@role_name = N'MyRole',-- tried with Null and role too
@supports_net_changes = 1
GO
Error:
Msg 916, Level 14, State 1, Procedure sp_cdc_enable_table, Line 45
The server principal "S-1-9-3-2376335028-1223578694-2108800438-1707743367." is not able to access the database "MyDatabase" under the current security context.
When Googled and found that CDC and Replication can co-exist but did not found how to do that.
Any inputs are welcome but don't tell me use trigger or other change tracking tips.
July 20, 2011 at 12:34 pm
July 20, 2011 at 1:04 pm
September 28, 2023 at 1:50 pm
This was removed by the editor as SPAM
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply