sp_helpfile- all databases

  • Hi I am using below script to get logical name of the dtabase.

    USE <databasename>

    GO

    SELECT file_id, name FROM sys.database_files

    is there any script to get logical names for all databases?

    Thanks!

  • Start with this:

    select * from sys.master_files

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply