当前位置: 代码迷 >> Sql Server >> 怎么判断一个索引是分区索引
  详细解决方案

怎么判断一个索引是分区索引

热度:33   发布时间:2016-04-24 08:49:17.0
如何判断一个索引是分区索引
问题内容,如题所示:
------解决思路----------------------
    SELECT o.name, o.type, o.type_desc,
           i.name, i.type_desc,
           s.type, s.type_desc
      FROM sys.indexes i
      JOIN sys.objects o
        ON i.object_id = o.object_id
 LEFT JOIN sys.data_spaces s
        ON i.data_space_id = s.data_space_id

如果 s.type 是 PS,就是分区的。
  相关解决方案