Article ID: 143337
Article Last Modified on 12/5/2003
SET ARITHABORT ON SET ARITHIGNORE ON GOboth options are set ON. When both options are set ON, ARITHABORT takes precedence over ARITHIGNORE.
CREATE PROCEDURE example AS SET ARITHABORT OFF SET ARITHIGNORE ON ... commands making up the stored procedure ... GOWhenever a SET statement is executed in a stored procedure, the new setting is only active until the procedure completes. When the procedure completes, the connection's setting for that option returns to what it was before the procedure was executed. With the sample code above, the ARITHABORT option is turned off for the duration of the procedure so that the ARITHIGNORE option is active, and it resets to the client application's desired setting when the procedure completes.
Additional query words: sql6 winnt odbc
Keywords: kbinfo kbinterop kbprogramming KB143337