Dear All,
I have installed iSeries Access ODBC Driver Version 11.00.08.00. I have created System DSN ODBC Connection to connect to DB2 database (JDE).
I have created macro in excel and added Micosoft Active X Library
Using below connection string
i am able to connect to DB2 database of JDE.Code:"Provider=MSDASQL.1;Persist Security Info=False;User ID=PPCC;PASSWORD=****;Data Source=Business Data - PROD;QueryTimeOut=0;"
But same connection string does not work in .net/
it is throwing error:Code:using System.Data.Odbc; OdbcConnection cn = new OdbcConnection( "Provider=MSDASQL.1;Persist Security Info=False;User ID=PPCC;PASSWORD=****;Data Source=Business Data - PROD;QueryTimeOut=0;"); cn.Open(); OdbcCommand cmd = new OdbcCommand("SELECT COUNT(*) FROM TABLENAME", cn);
what could be the reason and what is the worlaround.Code:ERROR [IM002] [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
I need help,Please
Regards,
PPCC![]()



Reply With Quote

