space is allocated to the database in SQL Server?

  • how can i check how much space is allocated to the database in SQL Server

  • SELECT DB_NAME(database_id) AS DatabaseName,

    Name AS Logical_Name, (size*8)/1024.0 SizeMB, cast((size*8)/1024.0/1000 as decimal(9,3)) SizeGB

    FROM sys.master_files

    order by 1

  • EXEC sp_helpdb '<your_db_name>'

    SQL DBA,SQL Server MVP(07, 08, 09) A socialist is someone who will give you the shirt off *someone else's* back.

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply