I use SQL server agent job to call a powershell script. I am using Type operating system(Cmdexec)
In the job command window, I type:
powershell.exe "D:\PowershellScripts\Write-VolToDb.ps1 'MySQLserver\v2012' dba"
It is not working. The scipt self is OK, but I just cannot figure out what is the correct syntax to call it.
The 'MySQLserver\v2012' is my server name\instanceName, dba is the database name. They are two parameter of the powershell.
What is correct syntax of it,
Thanks
SQLFriend