2016-08-11 41 views
0

我正在使用更改數據捕獲創建SSIS包。我已經創建了該包,但在執行它時出現以下錯誤:SSIS CDC權限錯誤

[CDC Control Task] Error: "Only members of the sysadmin fixed server role or db_owner fixed database role can perform this operation. Contact an administrator with sufficient permissions to perform this operation.".

錯誤說sysadmin/db_owner角色是必需的。但是,這是真的需要還是我做錯了什麼?

回答

0

我要看你正在SSIS中做什麼..這裏列出了MSDN。你需要有什麼特權..

訪問授權的更改數據

Trickle-feed update packages need access to SQL Server 2016 CDC functions. Such access is granted, by default, to members of the db_owner fixed database role. Because the db_owner is a powerful role, when defining capture instances within SQL Server 2016 it is recommended to associate a gating security role to each capture instance that allows the SSIS CDC package to use a much more restricted user for processing the changes.

訪問CDC數據庫當前LSN

The CDC Control task operations for marking the start LSN for change processing must be able to find the CDC Database current LSN. This is done using the procedure sp_replincrementlsn from the master database. Execute permission on this procedure must be given to the login used for connecting to the SQL Server 2016 CDC database.

訪問CDC狀態表:

The CDC States table is used for automatically persisting CDC States that need to be updatable by the login used for connecting to the SQL Server 2016 CDC database. As this table is created by the SSIS developer, set the SQL Server 2016 system administrator as a user who is authorized to create SQL Server 2016 databases and perform administrative and maintenance tasks. In addition, a SQL Server 2016 system administrator who works with CDC enabled databases must be knowledgeable about SQL Server 2016 CDC technology and implementation.