Return count of all the rows of all the tables

exec sp_MSforeachtable 'select count(*) as nr_of_rows, ''?'' as table_name from ?'

This will show table name and sum of all the rows of that table

Comments

Popular posts from this blog

To Get All the Names of tables and Databases their data have changed in last 24 Hours And Backup those databases

Break comma separated into multiple rows in MYSQL

mysql global search procedure