Ask the Expert

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;" _

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

This was first published in March 2001

There are Comments. Add yours.

TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: