Results 1 to 4 of 4
  1. #1
    Join Date
    Oct 2003
    Posts
    233

    Unanswered: A query to select names of tables or queries

    I would like a quick list of queries or tables from a db, how do i write a query to select names of tables or queries

  2. #2
    Join Date
    Apr 2002
    Location
    Toronto, Canada
    Posts
    20,002
    Code:
    SELECT Type
         , Name
         , DateCreate
         , DateUpdate
      FROM MSysObjects
     WHERE Type IN (1,5) 
       AND Name NOT LIKE 'MSys*'
    ORDER 
        BY Type
         , Name
    rudy.ca | @rudydotca
    Buy my SitePoint book: Simply SQL

  3. #3
    Join Date
    Dec 2004
    Location
    Madison, WI
    Posts
    3,926
    Nice Rudy.
    Expert Database Programming
    MSAccess since 1.0, SQL Server since 6.5, Visual Basic (5.0, 6.0)

  4. #4
    Join Date
    Oct 2003
    Posts
    233
    thanks! rudy

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •