zoukankan      html  css  js  c++  java
  • sql server 索引分析相关sql

    select object_id('dbo.FT_CFP_TRADE_SUBACCOUNT')

    select * from sys.partitions where [object_id]=1467256382

    select * from sys.allocation_units where container_id=72057594139049984

    select * from sys.system_internals_allocation_units where container_id=72057594139049984
    SELECT * FROM sys.dm_db_index_physical_stats(db_id(),object_id('dbo.MM_RealQuoteHistory_11'),null,null,'sampled')
    SELECT * FROM sys.dm_db_index_physical_stats(db_id(),object_id('dbo.MM_RealQuoteHistory_11'),null,null,'DETAILED')

    SELECT object_name(a.object_id) [TableName] ,a.index_id ,name [IndexName] ,avg_fragmentation_in_percent,
    a.*,b.*
    FROM sys.dm_db_index_physical_stats ( DB_ID() , NULL , NULL, NULL, NULL ) AS a
    JOIN sys.indexes AS b ON a.object_id = b.object_id AND a.index_id = b.index_id

    dbcc SHOWCONTIG ('dbo.MM_RealQuoteHistory_11')

  • 相关阅读:
    codeforces-1194 (div2)
    单链表1(悲剧文本)
    迷宫(深度搜索)
    皇后问题
    关键路径
    [NOI2015]软件包管理器
    [USACO13JAN]岛游记Island Travels
    仓鼠找sugar
    [SHOI2012]魔法树
    [HEOI2016/TJOI2016]树
  • 原文地址:https://www.cnblogs.com/hongb/p/5075863.html
Copyright © 2011-2022 走看看