Checking Capacity Storage of SQL Server Database

Some time we need to know how much storage of our database that we use, to estimate our server capacity usage.

How we can determine storage capacity of the SQL server database?

its can be done using SQL’s query below:

(run SQL management studio, and put this query on)

query :


use database_name;

exec sp_spaceused;



SQL Server

and the result will be appears, its contain database_name, database_size and unallocated space (which is database storage left) informations

that’s all we have to do