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. General Programming
  3. Visual Basic
  4. database tables search in vb.net

database tables search in vb.net

Scheduled Pinned Locked Moved Visual Basic
csharpdatabase
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.
  • A Offline
    A Offline
    amaneet
    wrote on last edited by
    #1

    Sir/Madam, Can I programically find out whether the particular table exist in the database or not. My database is MS-Access I am trying to find the table constructed in the database. Thanks abd Regards Pankaj

    T 1 Reply Last reply
    0
    • A amaneet

      Sir/Madam, Can I programically find out whether the particular table exist in the database or not. My database is MS-Access I am trying to find the table constructed in the database. Thanks abd Regards Pankaj

      T Offline
      T Offline
      testy_proconsul
      wrote on last edited by
      #2

      just try this SELECT * FROM MSysObjects

      solidIT.de - under construction Components for Microsoft .Net audittrail, objectcomparer, deepcopy and much more ...

      A 1 Reply Last reply
      0
      • T testy_proconsul

        just try this SELECT * FROM MSysObjects

        solidIT.de - under construction Components for Microsoft .Net audittrail, objectcomparer, deepcopy and much more ...

        A Offline
        A Offline
        amaneet
        wrote on last edited by
        #3

        Sir/madam, Thanks for ur kind attention.But how i will get to know that whether that table exist or not. Thanks and Regards

        T 1 Reply Last reply
        0
        • A amaneet

          Sir/madam, Thanks for ur kind attention.But how i will get to know that whether that table exist or not. Thanks and Regards

          T Offline
          T Offline
          testy_proconsul
          wrote on last edited by
          #4

          no prob SELECT COUNT(*) AS TABLE_EXISTS FROM MSysObjects WHERE Name = 'Forms' - and now you only have to replace "Forms" in the where clause with the table you want to check - if the TABLE_EXISTS field is bigger than 0 (zero) then the table exists otherwise it doesn't

          solidIT.de - under construction Components for Microsoft .Net audittrail, objectcomparer, deepcopy and much more ...

          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