I want production optimized query to return each row count and size for each database table in an instance
Like: DATABASE/CATALOG_NAME TABLE_NAME RECORD_COUNT SIZE(Bytes/KB/MB)
I want production optimized query to return each row count and size for each database table in an instance
Like: DATABASE/CATALOG_NAME TABLE_NAME RECORD_COUNT SIZE(Bytes/KB/MB)
What version of SQL Server are you using?
SSMS has a built in report that will just do that. You can export the report to excel.
What is better than that?
Check out this post from Buck Woody. If you get to see him talk, please go. Here is a very good presenter.