What Objects are on a FileGroup?

  • What is the best way to obtain a list of which tables or indexes are on a FileGroup?

  • I found one way to get the information:

    select a.name, b.name,a.groupid

    from sysindexes a,

    sysfiles b

    where a.groupid = b.groupid

    order by b.name,a.name

    Maybe there is a better way,... but couldn't find   sp_helpFileGroupObjects  

  • That's the only way I know and it only works for indexes or tables that have a clustered indexes. not sure how to determine for Stored procedures, heaps, views, etc.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic. Login to reply