C# and ADO OpenSchema

  • Thread starter Thread starter Denis ERCHOFF
  • Start date Start date
D

Denis ERCHOFF

Hi,

The OpenSchema method (ADODB._Connection object) seems to work fine in VB
but not with C# .... Why?

Someone have a solution?

My code :
[...]

ADODB._Connection AdoConnection;
MSDASC.DataLinks dataLink = new MSDASC.DataLinks();

AdoConnection = (ADODB._Connection) dataLink.PromptNew();
AdoConnection.Open()
AdoConnection.OpenSchema( ADODB.SchemaEnum.adSchemaTables, new
object[]{null, null, null, "TABLE"}, null);

[...]

Tahnk.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top