Returns the names and attributes of filegroups associated with the current database.
Name of the filegroup.
Numeric filegroup identifier.
Number of files in the filegroup.
If name is specified, one row for each file in the filegroup is returned.
Logical name of the file in the filegroup.
Numeric file identifier.
Physical name of the file including the directory path.
File size in kilobytes.
Maximum size of the file.
This is the maximum size to which the file can grow. A value of UNLIMITED in this field indicates that the file grows until the disk is full.
Growth increment of the file. This indicates the amount of space added to the file every time new space is required.
0 = File is a fixed size and will not grow.
A. Returning all filegroups in a database
The following example returns information about the filegroups in the AdventureWorks2008R2 sample database.