下面是一些常規的運維手段。運維
SELECT a.name, a.object_id, b.rows, b.index_id FROM sys.tables AS a INNER JOIN sys.partitions AS b ON a.object_id = b.object_id WHERE b.index_id IN ( 0, 1 );
哦,對了,對有些大神說,去新公司的時候執行一下這個代碼,若是行數不夠直接跑路。code
後續列舉的全部的更新都放在這裏,運維相關的。持續更新....blog