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

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 SQL Server 2000 Forums
 SQL Server Administration (2000)
 Find all data and log files
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Constraint Violating Yak Guru

498 Posts

Posted - 02/09/2011 :  11:50:21  Show Profile  Reply with Quote
I am trying to find out all data and log files in sql server instance. In sql server 2005 I can use following query for this purpose:
SELECT name, physical_name AS current_file_location
FROM sys.master_files

But I don't know how to do it in sql server 2000. When I run this query in 2k it gives error sys.master_files not found, any help will be appreciated.



5072 Posts

Posted - 02/09/2011 :  14:57:33  Show Profile  Visit russell's Homepage  Reply with Quote
select fileid, name, filename from sysaltfiles

Edited by - russell on 02/09/2011 14:57:55
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.03 seconds. Powered By: Snitz Forums 2000