Issues with T-SQL TRY CATCH?

前端 未结 5 706
野趣味
野趣味 2020-12-10 12:04

We are currently on SQL 2005 at work and I am migrating an old Foxpro system to new web application backed by SQL Server. I am using TRY CATCH in T-SQL for transaction proce

5条回答
  •  暖寄归人
    2020-12-10 12:46

    There was one case in my experience when TRY...CATCH block didn't catch the error. There was error connected with collation: Cannot resolve the collation conflict between "Latin1_General_CI_AS" and "Latin1_General_CI_AI" in the equal to operation. Maybe this error correspond one of the error type documented in BOL.

    Errors that occur during statement-level recompilation, such as object name resolution errors that occur after compilation because of deferred name resolution.

提交回复
热议问题