Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
メンテナンス プランがデータベースで何らかの作業を行った後、PowerShell スクリプトを実行/起動する必要があります。
これは可能ですか?
PowerShellスクリプトは。内で実行できますSQL Server 2008/2008r2/2012 Agent。SQL Server Management StudioでSQLジョブを作成PowerShell job stepし、PowerShellスクリプトへのフルパスを指定して選択します。次に、メンテナンス計画の最後にジョブを' Execute SQL Server Agent Job Task'として追加します
PowerShell
SQL Server 2008/2008r2/2012 Agent
PowerShell job step
Execute SQL Server Agent Job Task