I have a database with 5 .ndf (secondary) datafiles on SQL Server 2008 R2. (Each of these datafiles is assigned to a separate filegroup.) I want to know what data is there in those files. Is it possible? I know there are full text indexes in these filegroups (and since there is only one file per filegroup maybe the sole purpose of creating this many files were to place full text indexes in different filegroups, I don't know). I want to make sure there is no data other than full text indexes.
Thank you
Sql-server – Find what data is placed in a datafile
datafilefilegroupsfilessql serversql-server-2008
Related Question
- Sql-server – Restore .mdf data file for a File Group in SQL Server
- Sql-server – Partitioned Views – Storage of Indexes
- Sql-server – How to force users to specify a filegroup when creating tables/indexes
- Sql-server – Cannot remove filegroup with no files associated
- Sql-server – Piecemeal restore only one filegroup without primary filegroup restore
Best Answer
The following SQL will show you which file groups your tables and indexes are in which will make it easy to see if there is data in any file group that shouldn't have data.
full details of the script can be seen here