posts - 9, comments - 4, trackbacks - 0, articles - 21
          SYBASE ASE查詢日志空間使用情況
          select
              s.name,
              (select max(convert(int,t.status & 1))
              from <YOUR_DATABASE>.dbo.systhresholds t
              where s.segment=t.segment) status, sum(u.size)*2 size,
              sum(u.size - curunreservedpgs(u.dbid, u.lstart, u.unreservedpgs))*2.000/1024 used,
              @@thresh_hysteresis hysteresis
          from
              <YOUR_DATABASE>.dbo.syssegments s, master.dbo.sysusages u
          where
              1 = 1
              and ((u.segmap / ((s.segment & 1) + 1)) / power(2, (s.segment & 30))) & 1 = 1
              and u.dbid = db_id('YOUR_DATABASE') and s.name like '%'
          group by
              s.name
          order by 1  


          只有注冊用戶登錄后才能發表評論。


          網站導航:
           
          主站蜘蛛池模板: 长顺县| 古交市| 临颍县| 弥渡县| 太白县| 新兴县| 应用必备| 安阳市| 奉化市| 汶川县| 高淳县| 枣庄市| 自治县| 罗甸县| 贵州省| 揭阳市| 武功县| 苍梧县| 平阴县| 蒙城县| 报价| 遵义县| 栾川县| 高平市| 伽师县| 县级市| 花莲县| 武汉市| 黔南| 秭归县| 手机| 南通市| 岳阳市| 松桃| 乌拉特中旗| 张掖市| 庆安县| 伊川县| 武定县| 石阡县| 蓬安县|