C# and ADO OpenSchema

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Denis ERCHOFF

    C# and ADO OpenSchema

    Hi,

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

    Someone have a solution?

    My code :
    [...]

    ADODB._Connecti on AdoConnection;
    MSDASC.DataLink s dataLink = new MSDASC.DataLink s();

    AdoConnection = (ADODB._Connect ion) dataLink.Prompt New();
    AdoConnection.O pen()
    AdoConnection.O penSchema( ADODB.SchemaEnu m.adSchemaTable s, new
    object[]{null, null, null, "TABLE"}, null);

    [...]

    Tahnk.


Working...