d***@gmail.com
2012-07-19 10:00:08 UTC
In my Sybase PL/SQL block i can get the error code using @@ERROR.
But is there a way to get the error message.
I am looking for an equivalent to Oracle's SQLERRM
Quering sysmessages is not helping.
For Eg.
When i insert NULL in a NOT NULL column i need to catch and display the below error message which i would normally get if i execute the block in ASE ISQL.
'The column ABCD in table XYZ does not allow null values.'
Help appreciated.
Cheers,
Rosh
But is there a way to get the error message.
I am looking for an equivalent to Oracle's SQLERRM
Quering sysmessages is not helping.
For Eg.
When i insert NULL in a NOT NULL column i need to catch and display the below error message which i would normally get if i execute the block in ASE ISQL.
'The column ABCD in table XYZ does not allow null values.'
Help appreciated.
Cheers,
Rosh