Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 (Français) » SQL Anywhere Server - SQL Reference » Using SQL » SQL functions » SQL functions (P-Z)

 

TRACEBACK function [Miscellaneous]

Returns a string containing a traceback of the procedures and triggers that were executing when the most recent exception (error) occurred.

Syntax
TRACEBACK( * )
Returns

LONG VARCHAR

Remarks

This is useful for debugging procedures and triggers

Standards and compatibility
  • SQL/2003   Transact-SQL extension.

Example

To use the traceback function, enter the following after an error occurs while executing a procedure:

SELECT TRACEBACK( * );