First, I want to show you the code I'm working on (VB6):
Dim db as Connection
Dim rs as Recordset
Dim rs1 as Recordset
db.Open "DSN=Oracle 10g; Uid=myUser; Pwd=myPassword;" 'I also tested SQLServer2005
'I connect successfully
Set rs = db.OpenSchema(adSchemaTables, Array(Empty, Empty, Empty, "TABLE"))
' Everything ok here. I can list Database tables
Set rs1 = db.OpenSchema(adSchemaViews) 'This is the line I have problems with
when I try to list the Database's views I got an error that says: "El proveedor no puede ejecutar la operaciòn requerida" ("Provider can't execute the required operation")
My SQLServer configuration accepts remote and local connection, and works with Windows Authentication. I configured an user for my Oracle Database that can access it with a password. When I connect to the same Databases using a connection string I can list both tables and views in both Oracle and SqlServer.
Am I missing something? A configuration option in the databases Engines. maybe?