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 write query to find the database objects in databases

how to write query to find the database objects in databases

Scheduled Pinned Locked Moved Database
databasetutorial
6 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.
  • R Offline
    R Offline
    Rmesh
    wrote on last edited by
    #1

    hi i need to write query to find the databases presented in the database objects

    C 1 Reply Last reply
    0
    • R Rmesh

      hi i need to write query to find the databases presented in the database objects

      C Offline
      C Offline
      Colin Angus Mackay
      wrote on last edited by
      #2

      Rmesh wrote:

      i need to write query to find the databases presented in the database objects

      :confused: I have no idea what that means.


      Upcoming Scottish Developers events: * Glasgow: Tell us what you want to see in 2007 My: Website | Blog | Photos

      R 1 Reply Last reply
      0
      • C Colin Angus Mackay

        Rmesh wrote:

        i need to write query to find the databases presented in the database objects

        :confused: I have no idea what that means.


        Upcoming Scottish Developers events: * Glasgow: Tell us what you want to see in 2007 My: Website | Blog | Photos

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

        i have foind out the databases present in the database for ex, if we have databases like crm,sqm,love etc then i have to write the query to list out these databases

        C 1 Reply Last reply
        0
        • R Rmesh

          i have foind out the databases present in the database for ex, if we have databases like crm,sqm,love etc then i have to write the query to list out these databases

          C Offline
          C Offline
          Colin Angus Mackay
          wrote on last edited by
          #4

          Rmesh wrote:

          i have foind out the databases present in the database

          Do you mean the databases present on the server?

          Rmesh wrote:

          i have to write the query to list out these databases

          If you have SQL Server 2000 (and you haven't specified which technology you are using - please state this, it is important) the query would be something like:

          SELECT * FROM master..sysdatabases


          Upcoming Scottish Developers events: * Glasgow: Tell us what you want to see in 2007 My: Website | Blog | Photos

          R 1 Reply Last reply
          0
          • C Colin Angus Mackay

            Rmesh wrote:

            i have foind out the databases present in the database

            Do you mean the databases present on the server?

            Rmesh wrote:

            i have to write the query to list out these databases

            If you have SQL Server 2000 (and you haven't specified which technology you are using - please state this, it is important) the query would be something like:

            SELECT * FROM master..sysdatabases


            Upcoming Scottish Developers events: * Glasgow: Tell us what you want to see in 2007 My: Website | Blog | Photos

            R Offline
            R Offline
            Rmesh
            wrote on last edited by
            #5

            thank u its working now how to write query to list tables under the database

            J 1 Reply Last reply
            0
            • R Rmesh

              thank u its working now how to write query to list tables under the database

              J Offline
              J Offline
              jezemine
              wrote on last edited by
              #6

              check out the INFORMATION_SCHEMA views. they will give you all this data. in particular for tables in views: select * from INFORAMATION_SCHEMA.TABLES if you want a comprehensive data dictionary of your database, check out the link in my sig below.

              www.elsasoft.org

              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