Returns the filegroup identification number (ID) for the given filegroup name.
FILEGROUP_ID('filegroup_name')
smallint
filegroup_name corresponds to the groupname column in sysfilegroups.
This example returns the filegroup ID for the filegroup named default.
USE master
SELECT FILEGROUP_ID('default')
Control-of-Flow Language | UPDATE |
DELETE | WHERE |
INSERT | Metadata Functions |
SELECT |