.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
akohanAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

akohanAuthor Commented:


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.InvalidCastException was unhandled
  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.
0
morguloCommented:
Could you get more information? Show me code where you get an exception.
0
OWASP Proactive Controls

Learn the most important control and control categories that every architect and developer should include in their projects.

akohanAuthor Commented:

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);

Open in new window

0
akohanAuthor Commented:

could be a service pack problem? do I need to upgrade the library?

0
morguloCommented:
One of the returned column type is not supported by provider. It could be a problem with service pack. You can check for servicepacks: http://www-03.ibm.com/systems/i/software/access/windows/dotnet/index.html
If it doesn't work cast unsupported column type. Try to remove and add columns from query to fing which columns are invalid.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
akohanAuthor Commented:
Thanks.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
.NET Programming

From novice to tech pro — start learning today.