Today, I came across below error when I was trying to enable CDC for database. I used below query to enable CDC on database.
Go
EXEC sys.sp_cdc_enable_db
I fixed it by changing database owner from my user to sa. Below is query to change db owner to sa.
EXEC sp_changedbowner 'sa'
Query:
Use AsifGo
Go
Error:
Could not update the
metadata that indicates database is enabled for Change Data Capture.
The failure occurred when
executing the command 'SetCDCTracked(Value = 1)'. The error returned was 15404:
'Could not obtain information about Windows NT group/user , error code 0x5.'.
Use the action and error to determine the cause of the failure and resubmit the
request.
Fix:
Fix:
Query:
Use Asif
GoUse Asif
EXEC sp_changedbowner 'sa'
Go
This simple solution is worked.
ReplyDeleteThanks.