If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > DB2 issue with OpenSchema(adSchemaTables)

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-09-04, 08:40
peuj peuj is offline
Registered User
 
Join Date: Aug 2003
Posts: 7
DB2 issue with OpenSchema(adSchemaTables)

Hi,

I already asked on the Visual basic forum and somebody suggested me to ask here.

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

the suggestion from the VB forum was :
learn how to retrieve the table schema and then use this code :
Set TablesSchema = Conn.Execute(DB2OpenSchemaCode)

My goal is to be able to clean an account with tables, views, procs, functions so I try to list all and after I make a drop.

Thanks
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On