Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 Other Development Tools
 DB2 issue with OpenSchema(adSchemaTables)

Author  Topic 

Peuj
Starting Member

2 Posts

Posted - 2004-12-03 : 13:01:32
Hi,

new on this forum I need some help with a DB2 issue

When I use this code:

Dim Conn As New ADODB.Connection
Dim TablesSchema As ADODB.Recordset

Conn.Provider = "MSDASQL"
Conn.CursorLocation = adUseClient
Conn.Open "PROVIDER=MSDASQL;dsn=" + sDSN + ";uid=" + USER + ";pwd=" + PASS + ";"
Set TablesSchema = Conn.OpenSchema(adSchemaTables)

I got an error : "Object or provider is not capable of performing requested operation."

I work with DB2 v8.1 and MDAC 2.8

I don't have this issue if I work on DB2 v7.1

Does somebody knows what's wrong ?

Thanks

robvolk
Most Valuable Yak

15732 Posts

Posted - 2004-12-03 : 13:11:06
Well, we're a SQL Server site, not DB2. If I had to hazard a guess, your ODBC driver for DB2 needs to be upgraded to one that works with v8.1. The DSN would probably also have to be recreated to use the new driver.
Go to Top of Page

Peuj
Starting Member

2 Posts

Posted - 2004-12-06 : 06:17:12
Sorry to disturb, I've asked on a lot of sites and I don't take care...

Thanks to answer, I will checked you suggestion.
Go to Top of Page
   

- Advertisement -