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) "It's a dog-eat-dog world, and I'm wearing Milk-Bone underwear." "Norm", on "Cheers". Also from "Cheers", from "Carla": "You need to know 3 things about Tortelli men: Tortelli men draw women like flies; Tortelli men treat women like flies; Tortelli men's brains are in their flies".

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

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