How to get the File Group of a Table or an Index?

added by ranjithk
4/27/2010 6:43:06 AM

0 Kicks, 38 Views

The file group information of both an Index and a Table are stored in the sys.indexes table. You might wonder how the tables file group is stored in sys.indexes metadata table. It is because when ever a clustered index is created on a table in SQL Server the physical data pages of the table will be made part of the clustered index i.e. the leaf nodes of the clustered index contain the physical table data