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.
Author |
Topic |
yhchan2005
Starting Member
26 Posts |
Posted - 2010-06-07 : 00:32:36
|
Hi, i have 1 DB which created by my x collegue which was resign. i found out beside the .mdf and .ldf file, the same db also got 2 .ndf as belowxxx_Attachment.ndfxxx_History.ndf how can i check what is inside this 2 file or which table / index is using above 2 .ndf file. notice that this 2 file size is increasing. Please help !! |
|
GilaMonster
Master Smack Fu Yak Hacker
4507 Posts |
Posted - 2010-06-07 : 01:14:45
|
Check the database in SQL, is there one filegroup or multiple filegroups?--Gail ShawSQL Server MVP |
|
|
yhchan2005
Starting Member
26 Posts |
Posted - 2010-06-07 : 02:18:18
|
it is multiple file group. but have check the xxx_History is in the Primary filegroup and xxx_Attachment is in Attachment file group. I am not sure what is inside xxx_History ??? any SQL command to check ? |
|
|
ratheeshknair
Posting Yak Master
129 Posts |
Posted - 2010-06-07 : 06:46:34
|
Try thisSELECT fg.data_space_id, fg.name,ObjectName = OBJECT_NAME(p.object_id), p.index_id ,df.name, df.physical_name, [Size] = df.size*8/1024FROM sys.filegroups fgLEFT JOIN sys.database_files df ON fg.data_space_id = df.data_space_idLEFT JOIN sys.partitions p ON fg.data_space_id = p.partition_numberWHERE (p.object_id>4096 or p.object_id IS NULL)RKNAIR |
|
|
|
|
|