• Did you try searching? I'd have thought that a quick Google search would've answered this question for you far quicker than waiting on a forum.

    https://msdn.microsoft.com/en-us/library/ms174397.aspx

    SELECT file_id,

    name,

    physical_name,

    is_read_only

    FROM sys.database_files;


    Forever trying to learn
    My blog - http://www.cadavre.co.uk/
    For better, quicker answers on T-SQL questions, click on the following...http://www.sqlservercentral.com/articles/Best+Practices/61537/
    For better, quicker answers on SQL Server performance related questions, click on the following...http://www.sqlservercentral.com/articles/SQLServerCentral/66909/