Skip to content

Latest commit

 

History

History
43 lines (37 loc) · 2.3 KB

File metadata and controls

43 lines (37 loc) · 2.3 KB
title sys.filegroups (Transact-SQL)
description sys.filegroups (Transact-SQL)
author rwestMSFT
ms.author randolphwest
ms.date 05/24/2016
ms.service sql
ms.subservice system-objects
ms.topic reference
ms.custom
ignite-2025
f1_keywords
sys.filegroups_TSQL
filegroups
sys.filegroups
filegroups_TSQL
helpviewer_keywords
sys.filegroups catalog view
dev_langs
TSQL
monikerRange >=aps-pdw-2016 || =azuresqldb-current || =azure-sqldw-latest || >=sql-server-2016 || >=sql-server-linux-2017 || =azuresqldb-mi-current || =fabric || =fabric-sqldb

sys.filegroups (Transact-SQL)

[!INCLUDE sql-asdb-asdbmi-asa-pdw-fabricse-fabricdw-fabricsqldb]

Contains a row for each data space that is a filegroup.

Column name Data type Description
<inherited columns> -- For a list of columns that this view inherits, see sys.data_spaces (Transact-SQL).
filegroup_guid uniqueidentifier GUID for the filegroup.

NULL = PRIMARY filegroup
log_filegroup_id int [!INCLUDEssInternalOnly] In [!INCLUDEssNoVersion], the value is NULL.
is_read_only bit 1 = Filegroup is read-only.

0 = Filegroup is read/write.
is_autogrow_all_files bit [!INCLUDE SQL Server 2016 and later].

1 = When a file in the filegroup meets the autogrow threshold, all files in the filegroup grow.

0 = When a file in the filegroup meets the autogrow threshold, only that file grows. This is the default.

Permissions

Requires membership in the public role. For more information, see Metadata Visibility Configuration.

See Also

Catalog Views (Transact-SQL)
Data Spaces (Transact-SQL)