I had the same issue with the DB2.net provider.
If you have Windows 64 bit, download and install the IBM Data Server Runtime Client (Windows AMD 64) version 9.5
from? _https: //www14.software.ibm.com/webapp/iwm/web/preLogin.do languages = ru & source = SWG-idsrc11 & S_TACT = appddnet & S_CMP = ibm_im
If you run your program, you will get the following exception
Unhandled Exception: System.Overflow Exception: Arithmetic operation led to overflow. in IBM.Data.DB2.DB2ConnPool.Open (DB2Connection connection, StringszConnectionStringIn, DB2ConnSettings & ppSettings, Object & ppConn) in IBM.Data.DB2.DB2Connection.Open ()
Download and install the patch for your version of db2 from http://www-01.ibm.com/support/docview.wss?uid=swg1IZ09579
this will fix the problem.
source share