List all tables in Database (ADODB)

Deepthiv

Active member
Joined
Oct 3, 2005
Messages
39
Programming Experience
3-5
I have added ActiveX Data Objects reference (ADODB)

when i am trying to use

rs = conn.OpenSchema(adSchemaTables)

error exists - No OpenSchema method..

am i missing any thing can some one please confirm
 
This should work:
VB.NET:
[SIZE=2][COLOR=#0000ff]Dim[/COLOR][/SIZE][SIZE=2] AccessDataTable [/SIZE][SIZE=2][COLOR=#0000ff]As[/COLOR][/SIZE][SIZE=2] DataTable
AccessDataTable = oledbcon.GetOleDbSchemaTable(System.Data.OleDb.OleDbSchemaGuid.Tables, [/SIZE][SIZE=2][COLOR=#0000ff]New[/COLOR][/SIZE][SIZE=2] [/SIZE][SIZE=2][COLOR=#0000ff]Object[/COLOR][/SIZE][SIZE=2]() {[/SIZE][SIZE=2][COLOR=#0000ff]Nothing[/COLOR][/SIZE][SIZE=2], [/SIZE][SIZE=2][COLOR=#0000ff]Nothing[/COLOR][/SIZE][SIZE=2], [/SIZE][SIZE=2][COLOR=#0000ff]Nothing[/COLOR][/SIZE][SIZE=2], "Table1"})[/SIZE]
[SIZE=2]
[/SIZE]

Regards ;)
 
Back
Top