I need to get sql statement, which throws an exception while executing in try block.
Result should like this-
Error Message: Divide by zero error encountered.
SQL Statement: SELECT 1/0
Can anybody help me out to get this result?
Thanks & Regards,