Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Listing objects in filegroups

Status
Not open for further replies.

rtantek

IS-IT--Management
Jan 29, 2003
6
US
is there a way to list all objects in filegroups?
 
Try this.

Select f.GroupName, TblName=o.name
From sysobjects o
Join sysindexes i
On o.id=i.id
Join sysfilegroups f
On i.GroupId=f.GroupId
Where i.indid<2
And o.type='u'
order by 1, 2 Terry L. Broadbent - DBA
SQL Server Page:
If you want to get the best answer for your question read faq183-874.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top