1

I have 700 tables, and I want to know the record count of each table using dbvisualizer.

How can do simply and effective? Help me.

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
Venkat
  • 20,802
  • 26
  • 75
  • 84

2 Answers2

0

Try this:

SELECT SUM(TABLE_ROWS) FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA = '{database}';

Love Sharma
  • 1,981
  • 1
  • 18
  • 37
0
SELECT  distinct t.name, p.rows
FROM    sys.tables AS t
INNER JOIN sys.partitions AS p
        ON t.object_id = p.object_id
ORDER BY t.name 
Mike
  • 7,994
  • 5
  • 35
  • 44