SPTHROWEXCEPTION

Improves diagnostics returned to calling applications from COBOL SQL CLR stored procedures in the case of an implicit SQL Server rollback on a transaction.

Syntax:

SPTHROWEXCEPTION

Properties:

Default: None

Scope:

Used at compile time: No
Behavior at run time: Process

See Scope - SQL Compiler Directive Options for more information.

Comments:

SPTHROWEXCEPTION is especially useful for diagnosing problems with SQL CLR stored procedures in both COBOL and non-COBOL client applications.