Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All


Applies To: SQL Server 2014, SQL Server 2016 Preview

Topic Status: Some information in this topic is preview and subject to change in future releases. Preview information describes new features or changes to existing features in Microsoft SQL Server 2016 Community Technology Preview 2 (CTP2).

Returns the specified filegroup property value when supplied with a filegroup and property name.

Applies to: SQL Server (SQL Server 2008 through current version).

Topic link icon Transact-SQL Syntax Conventions

FILEGROUPPROPERTY ( filegroup_name , property )


Is an expression of type sysname that represents the name of the filegroup for which to return the named property information.


Is an expression of type varchar(128) contains the name of the filegroup property to return. property can be one of these values.



Value returned


Filegroup is read-only.

1 = True

0 = False

NULL = Input is not valid.


Filegroup is a user-defined filegroup.

1 = True

0 = False

NULL = Input is not valid.


Filegroup is the default filegroup.

1 = True

0 = False

NULL = Input is not valid.

filegroup_name corresponds to the name column in the sys.filegroups catalog view.

This example returns the setting for the IsDefault property for the primary filegroup in the AdventureWorks2012 database.

SELECT FILEGROUPPROPERTY('PRIMARY', 'IsDefault') AS 'Default Filegroup';

Here is the result set.

Default Filegroup 

(1 row(s) affected)

Community Additions

© 2015 Microsoft