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)
 check the path or drives for a filegroup
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

alejo46
Posting Yak Master

Colombia
116 Posts

Posted - 08/03/2013 :  11:52:10  Show Profile  Reply with Quote
Good morning:
i've got 2 questions:
1. is there any way to identify the path or drives in which a specific filegroup is stored in SQL 2K or i have to script?
for instance the datafiles for the primary or secondary FGs DATA5 are stored in:

D:\Traficoall\TRAFICO1_Data.ndf
F:\Hetrlldasmsc2_2\Hetrlldasmsc2_2.NDF

2 the following script works OK in sql 2008k and prints out DatabaseFileName|FileSizeInMB|FileGroupName|DatabaseFilePath but not in 2000K, is there anyway to apply the same script for 2000K using different system tables adding free space field ?
SELECT
dbfile.name AS DatabaseFileName,
dbfile.size/128 AS FileSizeInMB,
sysFG.name AS FileGroupName,
dbfile.physical_name AS DatabaseFilePath
FROM
sys.database_files AS dbfile
INNER JOIN
sys.filegroups AS sysFG
ON
dbfile.data_space_id = sysFG.data_space_id

I'd appreciate your help in advanced

  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.06 seconds. Powered By: Snitz Forums 2000