T-SQL Clear Errors
问题 I'm trying to clean up a huge legacy T-SQL stored proc. We call it from BizTalk. BizTalk has a feature to retry a send port (for example 3 times every 5 minutes) when it is in error. For example, the stored proc detects missing data and does this: if @CompanyID is null raiserror( '@CompanyID is missing', 18, 1 ); The "Begin Catch" logic handles certain errors, (i.e. logs them to error tables), and then does a "Return 0". I believe the prior programmer thought this would keep BizTalk from