Jul 5, 2005 #1 ashvn Programmer Joined Mar 21, 2001 Messages 33 Location 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!!
Hi, Is it possible to use T-SQL to know if a specific filegroup already exists? If so, how can this be done? Thanks!!
Jul 5, 2005 #2 hmckillop Programmer Joined Oct 30, 2001 Messages 1,540 Location GB 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 Upvote 0 Downvote
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
Jul 5, 2005 Thread starter #3 ashvn Programmer Joined Mar 21, 2001 Messages 33 Location MU Thanks hmckillop, that made the job! Upvote 0 Downvote