-- fast row counts SELECT S.name as schemaname, T.name as tablename, P.rows FROM sys.partitions P INNER JOIN sys.tables T ON P.object_Id = T.object_id INNER JOIN sys.schemas S ON T.schema_id = S.schema_id WHERE P.index_id IN (0,1) ORDER BY 1,2
Post a Comment
No comments:
Post a Comment