I knew that master had to keep track of database files, but I always just used sp_msforeachdb to walk each database and get the data from sysfiles. I like this one a whole lot more.
SELECT name, physical_name
FROM sys.master_files
ORDER BY LEFT(physical_name, 1), name
Friday, January 18, 2008
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment