Home Forums Programming Powershell Fail sql job if error is encountered in powershell script RE: Fail sql job if error is encountered in powershell script
schleep
SSChampion
Points: 12582
More actions
January 15, 2014 at 12:22 pm
#1680405
How about a try-catch around the first step. Set a variable indicating success or failure, then do step 2, and then throw that variable?