Link to home
Start Free TrialLog in
Avatar of ken hanse
ken hanseFlag for Australia

asked on

running Power shell script in SSIS and schedule it

Hi,

Has anyone run a Powershell script that has embedded with SSIS on SQL Agent Job?

thanks in advance
Avatar of Leo Torres
Leo Torres
Flag of United States of America image

Yes execute process task call the ps.exe and pass it script location
Avatar of ken hanse

ASKER

here is  the error message:

In Executing "%SystemRoot%\system32\WindowsPowerShell\v1.0\powershell.exe" "-ExecutionPolicy ByPass -command  ". '\\SQL-DWH-DEV\STAGINGFILES\Casemix.ps1' "" at "", The process exit code was "1" while the expected was "0".
SOLUTION
Avatar of Leo Torres
Leo Torres
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
good answer