locked
List out all tables in MS Access with ODBC provider RRS feed

  • Question

  • User1503731427 posted

    Hello friends i am using windows application with VB code i want to display list of all available table name in the given database and i want to use odbc provider pls any one help me..

    Friday, May 21, 2010 2:51 AM

Answers

  • User814867896 posted

    If your app has enough rights, you can get a list of tables using SQL query:

    SELECT Name FROM MSysObjects WHERE Type = 1

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, May 21, 2010 5:30 AM
  • User-1199946673 posted

    SELECT Name FROM MSysObjects WHERE Type = 1
     

     

    That will return the systemtablenames also!

    SELECT [Name] FROM MSysObjects WHERE [Type]=1 AND [Flags] = 0

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, May 21, 2010 6:08 AM

All replies

  • User-1199946673 posted

    am using windows application with VB code
     

    In that case, ask your question somewhere else, because these forums are intended for ASP.NET (web) related questions only:

    http://windowsclient.net/Forums/

    Friday, May 21, 2010 5:18 AM
  • User814867896 posted

    If your app has enough rights, you can get a list of tables using SQL query:

    SELECT Name FROM MSysObjects WHERE Type = 1

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, May 21, 2010 5:30 AM
  • User-1199946673 posted

    SELECT Name FROM MSysObjects WHERE Type = 1
     

     

    That will return the systemtablenames also!

    SELECT [Name] FROM MSysObjects WHERE [Type]=1 AND [Flags] = 0

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, May 21, 2010 6:08 AM