Export (0) Print
Expand All
ABS
ALL
AND
ANY
AVG
bit
COS
COT
DAY
EXP
GO
IN
LEN
LOG
MAX
MIN
NOT
OR
PI
SET
SIN
STR
SUM
TAN
USE
VAR
Expand Minimize

FILEGROUPPROPERTY

SQL Server 2000

Returns the specified filegroup property value when given a filegroup and property name.

Syntax

FILEGROUPPROPERTY ( filegroup_name , property )

Arguments

filegroup_name

Is an expression containing the name of the filegroup for which to return the named property information. filegroup_name is nvarchar(128).

property

Is an expression containing the name of the filegroup property to return. property is varchar(128), and can be one of these values.

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

Return Types

int

Examples

This example returns the setting for the IsUserDefinedFG property for the primary filegroup.

USE master
SELECT FILEGROUPPROPERTY('primary', 'IsUserDefinedFG')

See Also

Control-of-Flow Language

DELETE

INSERT

Metadata Functions

SELECT

UPDATE

WHERE

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft