For example:
When there are no rows returned for update & delete query the sqlcode is 100 but how will I get it in OledbConnection?
? SQLCode = 0 Successfull
? SQLCode = 0 Successfull
, SQLCode = <0 Exceptions
, SQLCode > 0 Warnings ( 100 - no rows returned )
. It is recommended to use the IBM Data Server provider for .Net instead of the generic OLEDB provider; the IBM provider has the DB2Error class , which has the information you want to retrieve.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.