Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 

Get your favorite SSC scripts directly in SSMS with the free SQL Scripts addin. Search for scripts directly from SSMS, and instantly access any saved scripts in your SSC briefcase from the favorites tab.
Download now (direct download link)

Row count and space used for all tables in database (update)

By Rafal Skotak,

This procedure works like the sp_spaceused (part of code is taken from it) procedure but this one shows statistics for all tables in the selected database or for all databases (excluding tempdb and model).

Now there are two versions: for SQL Server 2000 and SQL Server 2005.

Total article views: 9849 | Views in the last 30 days: 7
 
Tags
 
Contribute