Results 1 to 5 of 5
  1. #1
    Join Date
    Dec 2003
    Posts
    44

    Unanswered: Drive letters and MDF/LDF files...

    All,

    I'm writing to ask if anyone knows whether or not MS SQL server stores in any system tables the association between a database and the drive letter/directory path where its corresponding MDF/LDF files are located.

    Thanks,

    Isaac

  2. #2
    Join Date
    Feb 2004
    Location
    One Flump in One Place
    Posts
    14,912
    Code:
     
    SELECT database_id
    , name
    , physical_name
    FROM sys.master_files
    SQL 2005 - not sure re 2000
    Testimonial:
    pootle flump
    ur codings are working excelent.

  3. #3
    Join Date
    Jan 2003
    Location
    Massachusetts
    Posts
    5,800
    Provided Answers: 11
    Code:
    select filename
    from master..sysaltfiles

  4. #4
    Join Date
    Dec 2002
    Posts
    1,245
    Exec master.dbo.sp_helpfile


    Regards,

    hmscott
    Have you hugged your backup today?

  5. #5
    Join Date
    Feb 2004
    Location
    One Flump in One Place
    Posts
    14,912
    Code:
     
    SELECT name
    , physical_name
    FROM [dbName].sys.database_files
    Testimonial:
    pootle flump
    ur codings are working excelent.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •