Quantcast
Channel: SCN: Message List - SAP Adaptive Server Enterprise (SAP ASE) for Custom Applications
Viewing all articles
Browse latest Browse all 3587

Re: Why is exception not thrown in AseCommand when "Truncation error occurred"?

$
0
0


Hi Dave,

 

Okay this is expected behavior because it is considered a message from the ASE. I checked with the other drivers and it was the same thing.

 

Add this to your code since this isn't considered error but a message from the ASE.

 

       private void conn_InfoMessage(object obj, AseInfoMessageEventArgs args)

        {

            MessageBox.Show(DateTime.Now + " " + args.Errors.Count + " " + args.Message);

            MessageBox.Show("From ASE: " + args.Message);

        }

 

Then you can call it like this:
       conn_InfoMessage += new AseInfoMessageEventArgs(conn_InfoMessage);

 

ref: SyBooks Online for SDK 15.7 ADO.NET driver

 

Thanks,
Dawn Kim


Viewing all articles
Browse latest Browse all 3587

Trending Articles



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