Groups | Blog | Home
all groups > dotnet odbc.net > may 2006 >

dotnet odbc.net : retrieving list of tables



gyoder
5/28/2006 9:25:45 PM
how do i get a list of tables after issuing odbcconnection.open? i'm able to
open the connection and use odbcconnection.getschema but is there a generic
method that returns table list?

thanks

Paul Clement
5/30/2006 10:09:26 AM
[quoted text, click to view]

¤ how do i get a list of tables after issuing odbcconnection.open? i'm able to
¤ open the connection and use odbcconnection.getschema but is there a generic
¤ method that returns table list?
¤

Dim ODBCDatabaseConnection As New Odbc.OdbcConnection

ODBCDatabaseConnection.ConnectionString = "DSN=AccessDB"
ODBCDatabaseConnection.Open()

Dim TableSchema As DataTable

TableSchema = ODBCDatabaseConnection.GetSchema("tables")

DataGridView1.DataSource = TableSchema

ODBCDatabaseConnection.Close()


Paul
~~~~
J T
8/8/2007 2:27:20 PM
I needed the same thing, and this post helped me.

thanks
connection
9/16/2007 9:58:00 PM


[quoted text, click to view]
AddThis Social Bookmark Button