Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

Looks like I have a million questions.

 

I'm running VS.net. I try to connect to an AS/400 database.

I drag the OldDbDataAdapter, then the Data Adapter Configuration wizard pops up. I choose New connection.

 

I want to connect to a DB2 database on AS/400 (iSeries), so I choose 'IBM DB2 UDB for iSeries OLE DB Provider', entering IP address on the server name text box, enter the user name, add the library I wants to access in default collection, test Connection - succeeded.

 

Using Query Builder, it shows all the table (physical file) and view (logical file) in the library. I select the 'temp' table, select * (all columns) - SELECT MYLIB.TEMP.* FROM MYLIB.TEMP.

 

Now, next to View Wizard Results. Error:

Generated SELECT statement. Failed to get schema for this query.

 

What cause that? Does iSeries has to has the SQL package installed?

  • 2 years later...
Posted

No, it's because (in my opinion) IBM can't bring themselves to make something compatible with the rest of the planet.

 

Your query should look like this => SELECT * FROM MYLIB."TEMP"

 

For some idiotic reason, that's the only way I can access specific tables

Laredo512

* using VS.NET Pro 2003 *

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...