Quantcast
Channel: Teradata Forums - Database
Viewing all articles
Browse latest Browse all 14773

Store Procedure Return Codes & Failed Query Txt - forum topic by anandc

$
0
0

Hi All
Just wanted to know if we can capture the actual query that failed while a stored procedure was executing.
I tried capturing Activity Count, SQL State, SQL code - but just in case wanted to know if we can caprture the Query TXT that failed.
All i am trying to do here is, i have a stored procedure which executes 100's of SQL's. Is setting the temp varaible to track it down during the EXIT HANDLER the only way to find out which query failed or is there a better way to track the particular statement which failed.
Any help would be greatly appriciated.
Thanks !
Anand

Forums: 

Viewing all articles
Browse latest Browse all 14773

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>