Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

List Database names on server

Status
Not open for further replies.

R7Dave

Programmer
Oct 31, 2007
181
US
Hello

Is there a way to use T-SQL to return a list of databases on a server for SQL2005?

Something like

Select * from INFORMATION_SCHEMA.???

or

select name from sysobjects where ...

is there a method that will return a list of databases?

Thanks
Dave
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top