- Data File (Hold the data and objects such as tables, indexes, stored procedures, and views.)
- Primary mdf
- Seconday ndf
- Log File - .ldf
LCN / File Groups / Pages - Extents / LSN - MiniLSN - Checkpoint
====================================================================
Find the Location of Data and Log Files for all DBs:-
USE master;
SELECT
name 'Logical Name',
physical_name 'File Location'
FROM sys.master_files;
========================================================================================================================================
Find the Location of Data and Log Files for all DBs:-
USE master;
SELECT
name 'Logical Name',
physical_name 'File Location'
FROM sys.master_files;
Find the Location of Data and Log Files for Particular DB
USE Solutions; SELECT name 'Logical Name', physical_name 'File Location' FROM sys.database_files;
No comments:
Post a Comment