akohan
asked on
.NET referecnes (IBM)
Hello,
I need to make an application talk to AS/400 and I'm using IBM.Data.DB2.iSeries however, I don't know where I can get the DLL or library from.
Is it free? and where can I get it?
Regards,
ak
http://publib.boulder.ibm.com/infocenter/iseries/v5r4/index.jsp?topic=%2Frzaik%2Frzaikdotnetprovider.htm
ASKER
Hi thanks for the link... I got it work and now my code runs but the problem is that when I run a query
I get
System.InvalidCastExceptio
Message=The data type returned is currently not supported by the provider.
Do I need to update it or any service pack related to solve this issue?
Thanks.
Could you get more information? Show me code where you get an exception.
ASKER
Sure.
Error happens on line 6 where Fill() method is called.
try
{
db.Open();
adpt.SelectCommand = new iDB2Command(txtSQL.Text, CommandType.Text, db);
adpt.Fill(ds);
ASKER
could be a service pack problem? do I need to upgrade the library?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks.