Multiple Filegroups

  • Anyone know how to tell what tables/indexes etc. are on each file group? I want to know what objects have been created on each file group (we have 3).

    37SOLUTIONS
    Guidance and Oversight for Critical Technology Decisions
    Website Hosting | Website Design | MSSQL/MySQL Hosting | Database Development | IT Consulting

  • Try this.

    select object_name(sysind.id) as TableNme, sysind.name as ObjName, sysfg.groupname as GroupName

    from sysindexes sysind

    inner join sysfilegroups sysfg

    on sysind.groupid = sysfg.groupid

    inner join sysobjects sysobj

    on sysind.id = sysobj.id

    where sysobj.xtype <> 'S'

    and sysind.name not like '_WA%'

    order by sysind.TableNme

  • Perfect, thanks!!!

    37SOLUTIONS
    Guidance and Oversight for Critical Technology Decisions
    Website Hosting | Website Design | MSSQL/MySQL Hosting | Database Development | IT Consulting

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

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