C:\Program Files\Microsoft SQL Server\MSSQL{nn}.
How do I find the location of a database?
If you ever need to know where your database files are located, run the following T-SQL code: USE master; SELECT name ‘Logical Name’, physical_name ‘File Location’ FROM sys. master_files; This will return a list of all data files and log files for the SQL Server instance.
Where is SQL database stored in C drive?
By default, SQL Server’s user databases are installed on the system drive.