Returns the filegroup name for the given filegroup identification number (ID).
FILEGROUP_NAME(filegroup_id)
nvarchar(128)
filegroup_id corresponds to the groupid column in sysfilegroups.
This example returns the filegroup name for the filegroup ID 1 (the default).
USE master
SELECT FILEGROUP_NAME(1)
| Control-of-Flow Language | UPDATE |
| DELETE | WHERE |
| INSERT | Metadata Functions |
| SELECT |