I need to execute/launch a PowerShell script after my maintenance plan did some work on my database.
Is this possible?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You can run your
PowerShellscript withinSQL Server 2008/2008r2/2012 Agent. In SQL Server Management Studio create a SQL job and select aPowerShell job stepspecifying the full path to your PowerShell script. Then add the job at the end of your maintenance plan as ‘Execute SQL Server Agent Job Task‘