web-dev-qa-db-ja.com

エージェントジョブを実行しようとしたときにアクセスが拒否されました

誰かが私を正しい方向に向けてくれますか? SQL Serverで作成して保存したパッケージを実行するジョブを実行しようとすると、次のエラーメッセージが表示され続けます。

12/03/2012 17:32:15,New_App_R,Error,1,SQLAAG01,New_App_R,New_App_R,,
Executed as user: NT Service\SQLSERVERAGENT.
Started:  5:32:15 PM
Could not load package "\MSDB\New_App_R" because of error 0xC00160AE.
Description: Connecting to the Integration Services service on the computer "SQLAAG01" 
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. 

同じパッケージを作成してファイルシステム(デスクトップ)に保存しようとしました。以下のコードを使用してジョブまたはクエリウィンドウでパッケージを実行しようとしました。

EXEC @returncode = xp_cmdshell 'dtexec /f "C:\Users\jvelez\Desktop\New_App.dtsx"'

別のアクセス拒否エラーが表示されます:

Description: Failed to open package file "C:\Users\jvelez\Desktop\New_App.dtsx"
due to error 0x80070005 "Access is denied.".  This occurs when loading a package
and the file cannot be opened or loaded correctly into the XML document. This can
be the result of specifying an incorrect file name when calling LoadPackage or the
specified XML file has an incorrect format.

デスクトップでパッケージをダブルクリックすると、パッケージは実行されて完全に機能しますが、実行するパッケージをスケジュールする必要があります。さまざまな方法でジョブを作成し、自分を管理者グループに追加してみましたが、何も機能しないようです。何かアドバイスをいただければ幸いです。

Windows Server 2008でSQL Server 2012を実行しています

4
Juan Velez

'Service\SQLSERVERAGENT'サービスアカウントは、そのパッケージを実行するためにファイルシステムにアクセスする必要があります。

SSISパッケージのプロキシをセットアップし、そのプロキシアカウントを使用してジョブを実行することもできます。

4
Keith Tate

ほとんどの場合、[ステップの編集]-> [一般]-> [構成]-> [接続マネージャー]に移動し、接続文字列のプロパティまたはパスワードを選択することで、ステップのプロパティを介してセキュリティを通過できます。

0
Shirzad Sharif