Quantcast
Channel: SQLServerCentral » Programming » Powershell » Latest topics
Viewing all articles
Browse latest Browse all 467

Passing Parameter to SQl Agent Job that runs powershell

$
0
0
HiI have created a SQL Agent Job with a powershell step. The powershell script looks like the following:[code="other"]Param( [string]$A, [string]$B, [int]$C)#Do something with $A,$B and $C[/code]Now I have added it as a step and then created the job. What I am not able to figure out is how can I execute this job by passing parameters to the powershell script?

Viewing all articles
Browse latest Browse all 467

Trending Articles