Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Checking for an existing filegroup using T-SQL

Status
Not open for further replies.

ashvn

Programmer
Mar 21, 2001
33
MU
Hi,

Is it possible to use T-SQL to know if a specific filegroup already exists? If so, how can this be done?

Thanks!!

:)
 
you can use the function filegroup_id() to get an id of a filegroup. This returns NULL if filegroup doesnt exist.


"I'm living so far beyond my income that we may almost be said to be living apart
 
Thanks hmckillop, that made the job!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top