sqlserver中,有时需要知道已经建了哪些分区表,从哪里看?
1、直接用sql语句查:
–分区数大于1的,就是我们想查看的分区表:
select p.*,\\\’|\\\’ as sp ,t.* from sys.partitions as p
inner join sys.tables as t on p.object_id = t.object_id
inner join (
select object_id as object_id2,index_id, count(*) as cnt from sys.partitions
group by object_id,index_id
having count(*)>1
) s on s.object_id2 = p.object_id
where p.partition_id is not null
order by t.name;
2、在管理器中查看:
databases > [数据库名称] 节点 > 存储(storage) 节点 >
\\\\ 分区架构(partition schemes ) 节点 > 选中一项 > 右键 > 查看依赖
\\\\ 分区函数(partition functions ) 节点 > 选中一项 > 右键 > 生成脚本
3、有作多分区的表,属性的 存储(storage) 会有 partitioning 信息。
环信大学 | 构建一套适合微服务的高可用架构帮我看下这个几个域名一直都是谢谢了怎么解决php socket乱码问题昆山如何去注册商标深入理解JavaScript中的事件抖音seo优化怎么做?抖音seo引流获客SEO新手要有什么样的心态90后产品经理自述:如何为一款8年历史的产品注入新鲜血液