FILEGROUPPROPERTY (Transact-SQL)
SQL Server 2008 R2
Returns the specified filegroup property value when supplied with a filegroup and property name.
This example returns the setting for the IsDefault property for the primary filegroup in the AdventureWorks2008R2 database.
USE AdventureWorks2008R2;
GO
SELECT FILEGROUPPROPERTY('PRIMARY', 'IsDefault') AS 'Default Filegroup';
GO
Here is the result set.
Default Filegroup --------------------- 1 (1 row(s) affected)