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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Visual Basic
  4. need help...... [modified]

need help...... [modified]

Scheduled Pinned Locked Moved Visual Basic
databasecsharphelpquestion
3 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.
  • D Offline
    D Offline
    d24k104d
    wrote on last edited by
    #1

    is there a way to know the number of tables in an sql database without opening sql enterprise manager/configuration? using vb.net 2005 application a simple codes/explanation will help thanks...:-D -- modified at 4:04 Monday 3rd July, 2006

    S 1 Reply Last reply
    0
    • D d24k104d

      is there a way to know the number of tables in an sql database without opening sql enterprise manager/configuration? using vb.net 2005 application a simple codes/explanation will help thanks...:-D -- modified at 4:04 Monday 3rd July, 2006

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

      You can find this information from sysobjects table. All the user defined table having the type 'U' So writing a query like this will give u number of tables in a database select count(*) from sysobjects where type = 'U' NOTE :- Check for the table named "dtProperties", it is a system defined table but type is "U" only (so whatever the count comes COUNT-1 will give u exact number), no idea why, if anyone know about this then please clear my doubt regarding this table. :)

      D 1 Reply Last reply
      0
      • S soodmonu

        You can find this information from sysobjects table. All the user defined table having the type 'U' So writing a query like this will give u number of tables in a database select count(*) from sysobjects where type = 'U' NOTE :- Check for the table named "dtProperties", it is a system defined table but type is "U" only (so whatever the count comes COUNT-1 will give u exact number), no idea why, if anyone know about this then please clear my doubt regarding this table. :)

        D Offline
        D Offline
        d24k104d
        wrote on last edited by
        #3

        thanks this will help... ill try this one.... thank you again...:cool:

        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