Error connecting to DB2
Posted: Mon Sep 20, 2010 12:03 am
Hi.
I'm getting errors trying to create a new connection to DB2 local databases.
I have tried both OLEDB and ODBC connections from DynamicAI interface but no success.
This is my environment:
Windows 7 Ultimate , 32 bits, English
IIS 7
DB2 9.7 Express-C FP 2
DynamicAI 6.4 Personal Edition
My user id is in Administrator Group, and it has full SYSADM authority in DB2.
I'm able to connect to this database using ODBC and also other applications like VDF and Java.
1. Using OLEDB :
At the first test connection attempt, I get no errors, only a "Processing..." message.
The seccond time I click the "Test connection" button I receive a the following error: "Provider cannot be found. It may not be properly installed." Please, see picture attached (OLEDB_2).
By the third time I click the "Test Connection" button, then I receive "Unspecified error".
2. Using ODBC connection:
I have created and successfuly tested an ODBC connection to my DB2 local database. No error in ODBC Layer. (Look the second picture attached, ODBC_Test).
This time I get the error: "[IBM][CLI Driver] SQL1092N "IUSR" does not have the authority to perform the requested command or operation. "
Please see attachement ODBC_Error.
I have granted IUSR user the most privilege I can, what else is needed.. and why Dynamic is using IUSR (iis user) to conncet to database instead of the user I have supplied in the connection window... ?
Please, what am I missing here ?
I would like to use OLEDB instead of ODBC, but now none is working here...
Thanks
I'm getting errors trying to create a new connection to DB2 local databases.
I have tried both OLEDB and ODBC connections from DynamicAI interface but no success.
This is my environment:
Windows 7 Ultimate , 32 bits, English
IIS 7
DB2 9.7 Express-C FP 2
DynamicAI 6.4 Personal Edition
My user id is in Administrator Group, and it has full SYSADM authority in DB2.
I'm able to connect to this database using ODBC and also other applications like VDF and Java.
1. Using OLEDB :
At the first test connection attempt, I get no errors, only a "Processing..." message.
The seccond time I click the "Test connection" button I receive a the following error: "Provider cannot be found. It may not be properly installed." Please, see picture attached (OLEDB_2).
By the third time I click the "Test Connection" button, then I receive "Unspecified error".
2. Using ODBC connection:
I have created and successfuly tested an ODBC connection to my DB2 local database. No error in ODBC Layer. (Look the second picture attached, ODBC_Test).
This time I get the error: "[IBM][CLI Driver] SQL1092N "IUSR" does not have the authority to perform the requested command or operation. "
Please see attachement ODBC_Error.
I have granted IUSR user the most privilege I can, what else is needed.. and why Dynamic is using IUSR (iis user) to conncet to database instead of the user I have supplied in the connection window... ?
Please, what am I missing here ?
I would like to use OLEDB instead of ODBC, but now none is working here...
Thanks