简体   繁体   中英

Where does SQL Server LocalDB store master DB and list of databases?

Where in the file system does SQL Server LocalDB store its system databases, like master or tempdb ?

Connecting to LocalDB using SSMS, all the LocalDB databases appear in Object Explorer. So there must be a master database somewhere on the hard drive.

If you also want to know where the database files are then using SSMS right click on a database and choose properties and then go to files. You may also find the following query helpful.

SELECT db_name(database_id) as DatabaseName, name,type_desc, physical_name
FROM sys.master_files

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM