How to find Databases with its Table value
I want to find databases in the particular System.In the query i want to get a table value in tha database. i means , i created database, that database there a table with information about database ,they are StartDate,CloseDate,Description.In the databases diplay iwant to get these information also displays..How it possible?

Guest UserRank #1,422 · 1.2K reputationPosted Mar 17, 2011, 5:20 AM EDT
This will give you some information, and you can use the "database_id" column to join to the other sys tables to get more details on each database.
Suthish NairRank #92 · 22.8K reputationPosted Mar 17, 2011, 9:48 AM EDT
Sam HobbsRank #107 · 20.5K reputationPosted Mar 17, 2011, 9:31 PM EDT
So you need to get StartDate, CloseDate and Description from a table in a database, correct? You created the database and you created the table, correct? Do you know what the name of the database is and the name of the table? If not, then why not?
Guest UserRank #1,422 · 1.2K reputationPosted Mar 18, 2011, 6:08 AM EDT
To get a list of all databases and corresponding tables and columns, the following query will work:
sp_msforeachdb @command1='USE ?;SELECT * FROM INFORMATION_SCHEMA.Columns'
Sam HobbsRank #107 · 20.5K reputationPosted Mar 18, 2011, 8:17 AM EDT