How to list datafiles of sqlserver including path also using SMO?

  • Hi

    I wat to find the exact datafile path using SMO.But when i tried it gives upto

    c:/pf/miscosoftsqlserever/../../data.

    But i need to display the exact path

    c:/pf/miscosoftsqlserever/../../data/master.mdb

    How to do this ??

    Thanks in advance.

  • select * from sysfiles

    Tanx 😀

  • In SQL 2005, use the following: select * from sys.master_files

  • DNA (6/18/2009)


    In SQL 2005, use the following: select * from sys.master_files

    And in sql server 2000 how to list all the sysfiles

    Tanx 😀

Viewing 4 posts - 1 through 3 (of 3 total)

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