Based on link:USE [AdventureWorks2008R2]GOSELECT SCHEMA_NAME(A.schema_id) + . +A.Name, SUM(B.rows) AS RowCountFROM sys.objects AINNER JOIN sys.partitions B ON A.object_id = B.object_idWHERE A.type = UGROUP BY A.schema_id, A.Name
SQL Server Row count for all views / tables
0 comments:
Post a Comment