2022年5月11日
摘要: 查询碎片率 SELECT a.index_id ,B.name [IndexName] ,avg_fragmentation_in_percent FROM sys.dm_db_index_physical_stats ( DB_ID() , NULL , NULL, NULL, NULL ) AS 阅读全文
posted @ 2022-05-11 14:04 芝麻的西瓜 阅读(872) 评论(0) 推荐(0) 编辑
摘要: select a.name as '表名',b.rows as '表数据行数'from sysobjects a inner join sysindexes bon a.id = b.idwhere a.type = 'u'and b.indid in (0,1)--and a.name not l 阅读全文
posted @ 2022-05-11 14:00 芝麻的西瓜 阅读(391) 评论(0) 推荐(0) 编辑