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.
 
Back
Top