Ssis

如何授予連接到 SSIS 的權限?

  • November 10, 2020

嘗試使用 dtexec.exe 執行 SSIS 包時,我收到以下錯誤消息:

Could not load package "D:\Filename.dtsx" because of error 0xC00160AE.
Description: Connecting to the Integration Services service on the computer "" failed
with the following error: "Access is denied."

By default, only administrators have access to the Integration Services service.  On
Windows Vista and later, the process must be running with administrative privileges in
order to connect to the Integration Services service. See the help topic for information
on how to configure access to the service.

通常對於 Microsoft,沒有說明哪個幫助主題包含此資訊。當然,dtexec /?幫助沒有。

從以管理員權限啟動的命令提示符或從具有管理員權限的應用程序執行 dtexec 並不能解決問題。

我最終在MSDN上找到了解決方案。授予使用者對 Integration Services 服務的權限:

  1. 開放組件服務;從執行對話框中,您可以輸入“dcomcnfg”。
  2. 在左側樹中,導航到組件服務 | 電腦 | 我的電腦 | DCOM 配置。
  3. 找到“Microsoft SQL Server 集成服務 12.0”。這是 2014 年的;我相信早期版本會省略“Microsoft”,因此如果您在“M”下看不到它,請在“S”下檢查。
  4. 打開屬性 | 安全性並針對每種類型的權限點擊編輯並添加適當的 AD 組或使用者。請務必檢查所需的特定權限,例如編輯啟動時的遠端啟動和啟動權限。如果有人確切知道執行 SSIS 所需的權限,請分享。
  5. 啟動服務,然後重新啟動 SQL Server Integration Services 服務。

您現在應該能夠從 SQL Studio 或 dtexec.exe 連接到 Integration Services。

引用自:https://dba.stackexchange.com/questions/77320