sql 用于获取数据库中所有文件组的SQL查询

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sql 用于获取数据库中所有文件组的SQL查询相关的知识,希望对你有一定的参考价值。

select * from sysfilegroups
select TableNAME = o.name, ObjectName = i.name, i.indid, s.groupname
                  from sysfilegroups s, sysindexes i, sysobjects o
                  where i.id = o.id
                        and o.type in ('S ','U ') --system or user table
                        and i.groupid = s.groupid
AND s.groupname <> 'PRIMARY'

以上是关于sql 用于获取数据库中所有文件组的SQL查询的主要内容,如果未能解决你的问题,请参考以下文章