sp_spaceused for Database
The following output is generated when running sp_spaceused without a table name parameter.
database_name database_size unallocated space
------------------ ------------------ ------------------
pubs 2.00 MB 0.73 MB
reserved data index_size unused
------------- -------------- ---------------------------
1296 KB 472 KB 712 KB 112 KB
- database_name is the name of your current database.
- database_size is the total size of all files used in the database, include transaction log files.
- unallocated space is the total size that is not assigned, including all tables and indexes.
- reserved is the number of KB that is assigned to tables and indexes.
- data is the number of KB that has data.
- index_size is the number of KB that is used for index.
- unused is the number of KB that is assigned to data, but currently does not have any data stored on it.