Showing posts with label master_files. Show all posts
Showing posts with label master_files. Show all posts

Monday, December 6, 2010

Location of Data Files in SQL Server

You may get the physical location of MDF and LDF files by using following query.

select name,physical_name from sys.master_files

You may see other properties of databases i.e. size, maximum size, growth etc by using "select *" on sys.master_files.