SQL Server Articles

Submit Article
Home » Articles » SQL Server » Meta Data FunctionsRSS Feeds


Posted By: Sarita Patel     Category: SQL Server     Views: 1973

This article explains about FILEGROUP_NAME function in sql server with examples.

FILEGROUP_NAME function is used to get filegroup name of specified filegroup identification number.

Syntax of FILEGROUP_NAME Function :

FILEGROUP_NAME ( filegroup_id )

filegroup_id is a filegroup identification number. It corresponds to the groupid column in sysfilegroups. It is of type smallint.

Return type of  FILEGROUP_NAME function is nvarchar(128).

Examples of FILEGROUP_NAME Function :

Example 1 : Use of FILEGROUP_NAME function in select clause



Above example returns filegroup name of filegroup id 1.


Didn't find what you were looking for? Find more on FILEGROUP_NAME Function Or get search suggestion and latest updates.

Sarita Patel
Sarita Patel author of FILEGROUP_NAME Function is from United States.
View All Articles

Related Articles and Code:

Please enter your Comment

  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].

No Comment Found, Be the First to post comment!