HighTechTalks DotNet Forums  

retrieving list of tables

Dotnet Framework (ODBC.net) microsoft.public.dotnet.framework.odbcnet


Discuss retrieving list of tables in the Dotnet Framework (ODBC.net) forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
gyoder
 
Posts: n/a

Default retrieving list of tables - 05-28-2006 , 08:25 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



Reply With Quote
  #2  
Old   
Paul Clement
 
Posts: n/a

Default Re: retrieving list of tables - 05-30-2006 , 10:09 AM






On Sun, 28 May 2006 21:25:45 -0400, "gyoder" <georgeyoder (AT) comcast (DOT) net> wrote:

¤ 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
~~~~
Microsoft MVP (Visual Basic)

Reply With Quote
  #3  
Old   
J T
 
Posts: n/a

Default Re:retrieving list of tables - 08-08-2007 , 02:27 PM



I needed the same thing, and this post helped me.

thanks
Jd

Reply With Quote
  #4  
Old   
connection
 
Posts: n/a

Default Re:retrieving list of tables - 09-16-2007 , 11:58 PM





"J T" wrote:

Quote:
I needed the same thing, and this post helped me.

thanks
Jd


Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.