Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
Is there anyway to determine the line number where a stored procedure
encounters an exception?
Occasionally I run into an issue where a Decimal variable is not large enough
to contain the data it receives and a SQL error is returned from the procedure.
I would like to collect the error in an ON EXCEPTION block and return the line
number where the error occurred along with the error.
Your privacy choices
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.