Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 file path

Author  Topic 

Ex
Posting Yak Master

166 Posts

Posted - 2005-03-28 : 20:15:26
hey all,

just wondering what stored proc or system table can i query to get the full databsae file name

i.e c:\my folder\database.mdf

is this possible?

robvolk
Most Valuable Yak

15732 Posts

Posted - 2005-03-28 : 20:19:00
SELECT filename FROM sysfiles

You'll get all of the log and data files in the database with that query.
Go to Top of Page
   

- Advertisement -