Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 Database Files Free Space, Allocated Space

Author  Topic 

ashishashish
Constraint Violating Yak Guru

408 Posts

Posted - 2010-10-12 : 07:15:55
Hi all,
I am not able to find a way to get free space results of mdf and ldf files of a database as we can use sp_spaceused to get free space information of tables in database.
How can we achieve same results for database.

iF theRe iS a wAy iN tHen theRe iS a wAy oUt..

webfred
Master Smack Fu Yak Hacker

8781 Posts

Posted - 2010-10-12 : 07:30:56
http://www.roelvanlisdonk.nl/?p=499


No, you're never too old to Yak'n'Roll if you're too young to die.
Go to Top of Page

ashishashish
Constraint Violating Yak Guru

408 Posts

Posted - 2010-10-12 : 08:12:02
Thanks @webfred

ahhhh.....may be i behaved like a stupid but yes...if we run sp_spaceused with parameter in this case object_name than it will return required information.


iF theRe iS a wAy iN tHen theRe iS a wAy oUt..
Go to Top of Page
   

- Advertisement -