Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. How to find table in Access databse???

How to find table in Access databse???

Scheduled Pinned Locked Moved Database
databasesql-serversysadmintutorialquestion
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    R Offline
    Rohan_bhat_31
    wrote on last edited by
    #1

    Hi all... I want to find whether a table exists in Access Database or not. I know how to do it in MS SQL Server, we can see the result using Select query from sysobjects table and we have the list of all Tables, SPs, Views, functions...etc. But if my program gets .mdb file i.e. Access Database, my program must find whether a perticular table is created in that database or not. Is there any way to do it??? Thanx in advance....:)

    S 1 Reply Last reply
    0
    • R Rohan_bhat_31

      Hi all... I want to find whether a table exists in Access Database or not. I know how to do it in MS SQL Server, we can see the result using Select query from sysobjects table and we have the list of all Tables, SPs, Views, functions...etc. But if my program gets .mdb file i.e. Access Database, my program must find whether a perticular table is created in that database or not. Is there any way to do it??? Thanx in advance....:)

      S Offline
      S Offline
      S Douglas
      wrote on last edited by
      #2

      Rohan_bhat_31 wrote:

      want to find whether a table exists in Access Database or not.

      Try this. SELECT MSysObjects.Name FROM MSysObjects WHERE MSysObjects.Name = "tbl_name"


      DEBUGGING : Removing the needles from the haystack.

      R 1 Reply Last reply
      0
      • S S Douglas

        Rohan_bhat_31 wrote:

        want to find whether a table exists in Access Database or not.

        Try this. SELECT MSysObjects.Name FROM MSysObjects WHERE MSysObjects.Name = "tbl_name"


        DEBUGGING : Removing the needles from the haystack.

        R Offline
        R Offline
        Rohan_bhat_31
        wrote on last edited by
        #3

        Hey..thanx buddy.... but where this table is stored??? and there must be some log files also generated behind the scene...like SQL Server...???:doh: looking 4ward 2 see ur reply...

        S 1 Reply Last reply
        0
        • R Rohan_bhat_31

          Hey..thanx buddy.... but where this table is stored??? and there must be some log files also generated behind the scene...like SQL Server...???:doh: looking 4ward 2 see ur reply...

          S Offline
          S Offline
          S Douglas
          wrote on last edited by
          #4

          Rohan_bhat_31 wrote:

          but where this table is stored??? and there must be some log files also generated behind the scene...like SQL Server...???

          Access is completely different than SQL Server. An Access database is basically a binary file, so there is no real "table". There are no log files. No transaction nothing. I guess the question becomes what are you attempting to do?


          DEBUGGING : Removing the needles from the haystack.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups