Returns the specified filegroup property value when given a filegroup and property name.
FILEGROUPPROPERTY(filegroup_name, property)
Value | Description | Value returned |
---|---|---|
IsReadOnly | Filegroup name is read-only. | 1 = True 0 = False NULL = Invalid input |
IsUserDefinedFG | Filegroup name is a user-defined filegroup. | 1 = True 0 = False NULL = Invalid input |
IsDefault | Filegroup name is the default filegroup. | 1 = True 0 = False NULL = Invalid input |
int
This example returns the setting for the IsUserDefinedFG property for the primary filegroup.
USE master
SELECT FILEGROUPPROPERTY('primary', 'IsUserDefinedFG')
Control-of-Flow Language | UPDATE |
DELETE | WHERE |
INSERT | Metadata Functions |
SELECT |