SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

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

Peter99
Constraint Violating Yak Guru

494 Posts

Posted - 02/09/2011 :  11:50:21  Show Profile  Reply with Quote
Hi,
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.

Thanks

russell
Pyro-ma-ni-yak

USA
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  
 New 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