C
C.E.O. Gargantua
I am using the IBM DB2 Connector class of the Redistributable DB2
Run-Time Client Lite in a c# .net application using Visual Studio.
Running the code:
string myConnString = "DATABASE=192.168.1.43;UID=XXXX;PWD=XXXX";
DB2Connection myConnection = new DB2Connection(myConnString);
myConnection.Open();
Throws this error on the .Open() method:
IBM.Data.DB2.DB2Exception: ERROR [HY009] [IBM] CLI0124E Invalid
argument value. SQLSTATE=HY009
at IBM.Data.DB2.d.a(String A_0, Int32 A_1, IsolationLevel A_2,
DB2Connection A_3)
at IBM.Data.DB2.DB2ConnPool.a(DB2Connection A_0, String A_1, a& A_2,
Object& A_3)
at IBM.Data.DB2.DB2Connection.Open()
at dot400.Form1.processSqlRequest(String qs, Int32 q) in
c:\documents and settings\jbailo\my documents\visual studio
projects\dot400\form1.cs:line 205
How can I diagnose this?
Does my connection string look right?
The machine name on our network is AS400. If I use that as the
DATABASE name, it throws another error:
IBM.Data.DB2.DB2Exception: ERROR [58031] [IBM] SQL1031N The database
directory cannot be found on the indicated file system. SQLSTATE=58031
at IBM.Data.DB2.d.a(String A_0, Int32 A_1, IsolationLevel A_2,
DB2Connection A_3)
at IBM.Data.DB2.DB2ConnPool.a(DB2Connection A_0, String A_1, a& A_2,
Object& A_3)
at IBM.Data.DB2.DB2Connection.Open()
at dot400.Form1.processSqlRequest(String qs, Int32 q) in
c:\documents and settings\jbailo\my documents\visual studio
projects\dot400\form1.cs:line 205
I can access this as400 using OleDb ( the SQLDA400 data provider that is
part of the CAE ), but I want to deploy my application using the
Here is the connector class api doc:
http://publib.boulder.ibm.com/infoc...tm/frlrfIBMDataDB2DB2ConnectionClassTopic.htm
Run-Time Client Lite in a c# .net application using Visual Studio.
Running the code:
string myConnString = "DATABASE=192.168.1.43;UID=XXXX;PWD=XXXX";
DB2Connection myConnection = new DB2Connection(myConnString);
myConnection.Open();
Throws this error on the .Open() method:
IBM.Data.DB2.DB2Exception: ERROR [HY009] [IBM] CLI0124E Invalid
argument value. SQLSTATE=HY009
at IBM.Data.DB2.d.a(String A_0, Int32 A_1, IsolationLevel A_2,
DB2Connection A_3)
at IBM.Data.DB2.DB2ConnPool.a(DB2Connection A_0, String A_1, a& A_2,
Object& A_3)
at IBM.Data.DB2.DB2Connection.Open()
at dot400.Form1.processSqlRequest(String qs, Int32 q) in
c:\documents and settings\jbailo\my documents\visual studio
projects\dot400\form1.cs:line 205
How can I diagnose this?
Does my connection string look right?
The machine name on our network is AS400. If I use that as the
DATABASE name, it throws another error:
IBM.Data.DB2.DB2Exception: ERROR [58031] [IBM] SQL1031N The database
directory cannot be found on the indicated file system. SQLSTATE=58031
at IBM.Data.DB2.d.a(String A_0, Int32 A_1, IsolationLevel A_2,
DB2Connection A_3)
at IBM.Data.DB2.DB2ConnPool.a(DB2Connection A_0, String A_1, a& A_2,
Object& A_3)
at IBM.Data.DB2.DB2Connection.Open()
at dot400.Form1.processSqlRequest(String qs, Int32 q) in
c:\documents and settings\jbailo\my documents\visual studio
projects\dot400\form1.cs:line 205
I can access this as400 using OleDb ( the SQLDA400 data provider that is
part of the CAE ), but I want to deploy my application using the
Here is the connector class api doc:
http://publib.boulder.ibm.com/infoc...tm/frlrfIBMDataDB2DB2ConnectionClassTopic.htm