Following code will display the list of database name with the physical location of that database .mdf file in your computer.
- SELECT name, physical_name FROM sys.master_files

Note: Path and the database name will be different based on your database list.

Manish Kumar ChoudharyPosted Dec 20, 2014, 1:47 AM
Thanks..
Jitendra KumarPosted Dec 20, 2014, 1:47 AM
Good..