Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Powershell in SSIS

What would I need to do in order to run a PowerShell script in an SSIS package?

Does PowerShell need to be installed on the SQL server? How do I actually call the script in SSIS?

Thanks

like image 326
David Neeck Avatar asked Jul 01 '09 16:07

David Neeck


1 Answers

Yes, PowerShell needs to be installed. Then, you can use an Execute Process Task to point to the PowerShell executable and give the script as an argument.

Like so:

Executable: %windir%\system32\WindowsPowerShell\v1.0\powershell.exe
Arguments:  C:\path\to\script.ps1
like image 78
Eric Avatar answered Oct 11 '22 22:10

Eric