How do I obtain the MS SQL database disk usage?

Execute this command in Sql Query Analyzer

exec sp_spaceused

The database size is measured in kilobytes.

Was this answer helpful?

 Print this Article

Also Read

Cannot expand Databases in Management Studio

Error: Management Studio Express 2008 to access my shared hosted SQL 2005 / 2008 Standard. I...

Change collation type in SQL Server

To change a collation of database use this statement. USE Tempdb GO ALTER DATABASE Pubs COLLATE...

I am able to view and access a SQL database other than my own while connected with Enterprise Manager, Query Analyzer, or the SQL Web admin. What is wrong?

...

How to Transfer SQL database from My Database Server to your Database Server

From the Start Menu, select Programs -> Microsoft SQL Server -> Import and...

How to connect to SQL Server 2000 using Query Analyser?

To connect to your Microsoft SQL Server 2000 database using the Query Analyser, you will...