Please start any new threads on our new site at http://forums.sqlteam.com. 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
 
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
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

alejo46
Posting Yak Master

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