CREATE PROCEDURE YourProcedure ASBEGIN SET NOCOUNT ON; BEGIN TRY---------------------开始捕捉异常 BEIN TRAN------------------开始事务 UPDATE A SET A.names = B.names FROM 表1 AS A INNER JOIN 表2 AS B ON A.id = B.id UPDATE A SET A.names = B.name…
转自:https://stackoverflow.com/questions/7412185/what-is-the-difference-between-catch-vs-catchcexception try{}catch( const CException & e ){// catch all CExceptions// as far as I know it is ok now to catch CException by reference with modern Microsoft…