Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 Getting all databases on a server

Author  Topic 

nismo
Starting Member

3 Posts

Posted - 2007-02-07 : 15:47:42
Is there a query i can run to get a list of all databases on a specified server?

Cheers

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2007-02-07 : 15:54:22
SELECT *
FROM sys.databases

Tara Kizer
Go to Top of Page
   

- Advertisement -