Home Forums SQL Server 2008 SQL Server Newbies Error Handling: TRY...CATCH RE: Error Handling: TRY...CATCH
Mark Eckeard
Hall of Fame
Points: 3462
More actions
August 13, 2012 at 4:54 pm
#1525333
Like Luis stated, use an if/else. If it fails, it'll fall to the "else" part and you can produce your message. Try/catch would normally be used to trap any unforeseen errors.
Mark