Q
Problem solve Get help with specific problems with your technologies, process and projects.

Connecting the iSeries via ADO

I am a new programmer on the iSeries 400 and VB -- I am working in systems management. I tried to connect the iSeries 400 via ADO. But I can't do this without DSN connections. I want to use OLE DB Provider for the iSeries to connect to the iSeries databases. Can you send me examples?


First of all let me recommend the book "A Fast Path to AS/400 Client/Server Using AS/400 OLE DB Support" (SG24-5183-00), it is available at the IBM Redbooks site. This book is very good.

Here is a small VBA example using the AS/400 OLE DB provider to connect via ADO and not via DSN):

Set Conn = New ADODB.Connection'
Conn.Open "Provider=IBMDA400;Data Source=SYSTEM;" _
, "USER","PASSWORD"

Please note that the provider is IBMDA400 (not MSDASQL).


This was last published in March 2001

Dig Deeper on Performance

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchDataCenter

  • How do I size a UPS unit?

    Your data center UPS sizing needs are dependent on a variety of factors. Develop configurations and determine the estimated UPS ...

  • How to enhance FTP server security

    If you still use FTP servers in your organization, use IP address whitelists, login restrictions and data encryption -- and just ...

  • 3 ways to approach cloud bursting

    With different cloud bursting techniques and tools from Amazon, Zerto, VMware and Oracle, admins can bolster cloud connections ...

Close