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
 General SQL Server Forums
 New to SQL Server Administration
 SQL Server 2005 - list databases

Author  Topic 

itsonlyme4
Posting Yak Master

109 Posts

Posted - 2011-01-19 : 13:40:15


How would I go about getting a list of all databases for an instance along with the phyiscal file names for each DB (in one list)???

robvolk
Most Valuable Yak

15732 Posts

Posted - 2011-01-19 : 13:41:16
SELECT DB_NAME(database_id) DatabaseName, * FROM sys.master_files
Go to Top of Page

itsonlyme4
Posting Yak Master

109 Posts

Posted - 2011-01-19 : 14:05:40
Go to Top of Page
   

- Advertisement -