Problem with connection to DB2
-
- Posts: 10
- Joined: Fri 29 May 2009 10:43
- Location: Romania, Arad
Problem with connection to DB2
I installed DB2 Express-C on my Delphi station. I create a new database and I try to connect my application to that database but I get this error
[IBM][CLIDriver] CLI0124E Invalid argument value. SQLSTATE=HY009
Uniconnection Configuration:
ProviderName=DB2;
Database=newdatabase;
host=localhost;
port=50000;
username:db2admin;
password=1;
What I'm doing wrong?
[IBM][CLIDriver] CLI0124E Invalid argument value. SQLSTATE=HY009
Uniconnection Configuration:
ProviderName=DB2;
Database=newdatabase;
host=localhost;
port=50000;
username:db2admin;
password=1;
What I'm doing wrong?
-
- Posts: 10
- Joined: Fri 29 May 2009 10:43
- Location: Romania, Arad
DB2 Control Center works
DB Control Center works.. I create databases, tables,users...but when I try to access a database with Unidac I get that error...
-
- Posts: 10
- Joined: Fri 29 May 2009 10:43
- Location: Romania, Arad
-
- Posts: 10
- Joined: Fri 29 May 2009 10:43
- Location: Romania, Arad
It work!
It work
Thanks a lot!!!
Thanks a lot!!!
-
- Posts: 10
- Joined: Fri 29 May 2009 10:43
- Location: Romania, Arad
Hello
I have another problem
When I use a UniLoader I get this error.
[IBM][CLI Driver][DB2/NT] SQL0302N The value of a host variable in the EXECUTE or OPEN statement is out of range for its corresponding use.SQLSTATE=22001
The table that is loaded is very big (over 200.000 records)
With other database like Firebird, SQLite, PostgreSQL it work.
Thanks
I have another problem
When I use a UniLoader I get this error.
[IBM][CLI Driver][DB2/NT] SQL0302N The value of a host variable in the EXECUTE or OPEN statement is out of range for its corresponding use.SQLSTATE=22001
The table that is loaded is very big (over 200.000 records)
With other database like Firebird, SQLite, PostgreSQL it work.
Thanks
Hello,
I could not reproduce the problem.
I have tested it on a table with more than 200 000 records, and all works fine.
Maybe the problem isn't connected with the number of records, maybe it's connected with some values or types of fields in the table.
So please provide the script to create the table.
I could not reproduce the problem.
I have tested it on a table with more than 200 000 records, and all works fine.
Maybe the problem isn't connected with the number of records, maybe it's connected with some values or types of fields in the table.
So please provide the script to create the table.
-
- Posts: 10
- Joined: Fri 29 May 2009 10:43
- Location: Romania, Arad
I enlarged some string fields and everything it's working now.
It's interesting because I load a DBF table that have the exact structure as the DB2 table
Thanks a lot!!!
It's interesting because I load a DBF table that have the exact structure as the DB2 table
Thanks a lot!!!
Last edited by softwestteam on Tue 12 Apr 2011 12:54, edited 1 time in total.