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 19, 2014, 8:47 PM EST
Thanks..
Jitendra KumarPosted Dec 19, 2014, 8:47 PM EST
Good..