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 Studio
  4. how to list all the databases in the availables SQL server

how to list all the databases in the availables SQL server

Scheduled Pinned Locked Moved Visual Studio
databasesql-serversysadmintutorialquestion
3 Posts 3 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.
  • O Offline
    O Offline
    osama82
    wrote on last edited by
    #1

    Folkes, how are you all ,i would like to ask how can i list all the available Databases in a selected sqlserver! thank you :(( kind regards Osama Khattab

    O J 2 Replies Last reply
    0
    • O osama82

      Folkes, how are you all ,i would like to ask how can i list all the available Databases in a selected sqlserver! thank you :(( kind regards Osama Khattab

      O Offline
      O Offline
      OMalleyW
      wrote on last edited by
      #2

      SELECT name FROM master.dbo.sysdatabases Will I hate users. Not all of them, just the ones who talk.CP member: Al Einstien

      1 Reply Last reply
      0
      • O osama82

        Folkes, how are you all ,i would like to ask how can i list all the available Databases in a selected sqlserver! thank you :(( kind regards Osama Khattab

        J Offline
        J Offline
        javiersolis1983
        wrote on last edited by
        #3

        You must reference the COM Library Microsoft SQLDMO, you must install client tools and SQL service pack 3a in your PC. With this library you can list al server, for each server the databases and for each database all the tables. And other stuffs.

        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