Connecting Tech Pros Worldwide Forums | Help | Site Map

C# and ADO OpenSchema

Denis ERCHOFF
Guest
 
Posts: n/a
#1: Nov 15 '05
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.



Closed Thread