To Obtain Quick Counts of Rows in All Tables

  1. SELECT T.name AS TableName ,MAX(rowcnt) AS TotalRow from sys.tables T JOIN sys.sysindexes I on T.object_id=I.id  
  2. GROUP BY T.name