2009-07-01 26 views
9

爲了在SSIS包中運行PowerShell腳本,我需要做什麼?SSIS中的Powershell

是否需要在SQL服務器上安裝PowerShell? 如何在SSIS中實際調用腳本?

謝謝

回答

13

是的,需要安裝PowerShell。然後,您可以使用Execute Process Task指向PowerShell可執行文件並將該腳本作爲參數。

像這樣:

Executable: %windir%\system32\WindowsPowerShell\v1.0\powershell.exe 
Arguments: C:\path\to\script.ps1