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)

Know all Database sizes in a server.

By gundapaneni,

We can know how much space a database is occupied in hard disk by using sp_spaceused function. If we want to find all database sizes at a time, we have to provide use  and sp_spaceused for all databases. It takes some time to write all those T-sql statments. My script will find each and every database size with out using sp_spaceused function. It will save your time and server time. Try this,

Total article views: 1643 | Views in the last 30 days: 1
 
Related Articles
FORUM

sp_spaceused

sp_spaceused

BLOG

sp_spaceused system-stored procedure

You can use the sp_spaceused system-stored procedure to return space usage information about a datab...

SCRIPT

Monitor database growth - a better way for sp_spaceused

A better way to use sp_spaceused, returning values on one row for the database instead of two.

FORUM

spaceused of a table

spaceused query...

BLOG

Capturing Database(s) and Table Usage stats – sp_spaceused simulation using DMVs

For more Information refer Technet Article Introduction sp_spaceused is one of the system ...

 
Contribute