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)

User Tables with Size  all DBs (SQL 2005 Only)

By Todd Hand,

Hope this is helpful to someone.  This script will create a table and a stored procedure in the master database to gather and store table info for all datbases. The sp uses a temp table to hold the results returned by sp_spaceused, then transfers the information to the permanent table DatabaseTableSizes and adds the database name so you can query it later for any db. Feel Free to Improve. Only works with 2005 right now, too lazy to modify and post 2000 version, for now!

Total article views: 268 | Views in the last 30 days: 2
 
 
Contribute