Konnte nicht aktualisieren Sie die Metadaten, die angibt, Datenbank X ist für Change Data Capture aktiviert. Der zurückgegebene Fehler war 15517
Benutze ich SQL Server 2008
und AdventureWorkDB
.
Will ich aktivieren Change Data Capture
in meiner Datenbank.
Ich diesen Befehl ausführen :
USE [AdventureWorksDB];
GO
EXEC sys.sp_cdc_enable_db ;
Aber ich bekomme diese Fehlermeldung :
Could not update the metadata that indicates database X is enabled for
Change Data Capture.
The failure occurred when executing the command 'SetCDCTracked(Value = 1)'.
The error returned was 15517:
'Cannot execute as the database principal because
the principal "dbo" does not exist,
this type of principal cannot be impersonated,
or you do not have permission.'.
Use the action and error to determine the cause of the failure and resubmit
the request.
Wie ich es beheben kann ?
Du musst angemeldet sein, um einen Kommentar abzugeben.
Nach googeln
Löse ich es mit diesem Befehl :
Muss ich hinzufügen
DataBase
Eigentümer zu meiner Datenbank.'The database owner SID recorded in the master database differs from the database owner SID recorded in database 'XXX'. You should correct this situation by resetting the owner of database 'XXX' using the ALTER AUTHORIZATION statement.'. Use the action and error to determine the cause of the failure and resubmit the request.