December 7, 2010 at 4:00 am
this is my scenario,
I have a db consists of 10 .ndfs , i want to remove one of the .ndf file lets say 7 , how can we find whether the file conatins any data or objects and how to remove the file
December 7, 2010 at 4:03 am
Is each file in its own filegroup, or are they all in one filegroup, or something in between?
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
December 7, 2010 at 4:05 am
all files belongs to the same file group
December 7, 2010 at 4:11 am
Then all tables in that filegroup would have been striped across all files.
Shrinkfile with the Emptyfile option. Make sure there's enough space in the other files.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
December 7, 2010 at 4:25 am
thanks for ur response , if the secondary files belongs to different groups i.e one .ndf belongs to one file group , then how to check the data .
December 7, 2010 at 5:01 am
Query sys.allocation_units and sys.data_spaces, identify the affected indexes and create ... with drop existing on different filegroup.
Gail Shaw
Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability
Viewing 6 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply