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

  • 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?