by1455的自留地

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2011年8月15日

摘要: 一直使用以下的SQLSET NOCOUNT ON -- Table row counts and sizes.CREATE TABLE #t ( [name] NVARCHAR(128), [rows] CHAR(11), reserved VARCHAR(18), data VARCHAR(18), index_size VARCHAR(18), unused VARCHAR(18)) INSERT #t EXEC sp_msForEachTable 'EXEC sp_spaceused ''?''' -- Order by size (nee 阅读全文
posted @ 2011-08-15 14:24 by1455 阅读(282) 评论(0) 推荐(0) 编辑