August 6, 2005 at 4:38 am
Hi experts!
How is the statement for viewing filegroups in a db? Searched for it in the OLB, but didn´t found it.
btw: as i am a absolute beginner, i asked me if there is a forum for Newbies. I will not annoy anyone with really basic questions. If not i will post all my questions in the specalized forum, if i can´t find discussed in the past.
thanks in advance
Alex
August 6, 2005 at 4:44 am
EXEC sp_helpfilegroup
August 6, 2005 at 4:45 am
Ok. Already found:
select * from sysfilegroups
next questions:
viewing files in the filegroups?
August 6, 2005 at 4:49 am
Thanks, that helps for new additional filegroups. For example if i made a filegroup called testgroup, i am able to show it like this:
EXEC sp_helpfilegroup testgroup
But how can i show the file in the primary group?
August 6, 2005 at 7:18 am
I do not have a server to test with, but I suppose sp_helpfilegroup 'PRIMARY' might work. If you execute it with no parameters it shows all filegroups.
August 6, 2005 at 7:34 am
Oh,that´s it. I´ve forgotten that it is a keyword. Have tried it as normal query.
Thanks
Viewing 6 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic. Login to reply