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
 SQL Server 2005 Forums
 .NET Inside SQL Server (2005)
 Calculate the Disk Storage Space

Author  Topic 

nshankar
Starting Member

9 Posts

Posted - 2007-09-19 : 05:21:51
HI All

how to calculate the disk storage space of the database from the front using asp.net

Can anyone give suggestion

Thanks

harsh_athalye
Master Smack Fu Yak Hacker

5581 Posts

Posted - 2007-09-19 : 05:23:24
[code]EXEC sp_spaceused[/code]

Harsh Athalye
India.
"The IMPOSSIBLE is often UNTRIED"
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2007-09-19 : 05:23:51
See this script
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=89058



E 12°55'05.25"
N 56°04'39.16"
Go to Top of Page

nshankar
Starting Member

9 Posts

Posted - 2007-09-19 : 06:05:37
fine it works but displays the entire space occupied. if i want to check for used space... what is the default space of the database and maximum size

Thanks
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2007-09-19 : 06:07:17
There is no maximum size except for SQL Express.



E 12°55'05.25"
N 56°04'39.16"
Go to Top of Page

nshankar
Starting Member

9 Posts

Posted - 2007-09-19 : 06:09:56
Is DEfault space size is of 50MB?
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

30421 Posts

Posted - 2007-09-19 : 06:18:11
Ask Michael Valentine Jones if he can include that piece of information in the script mentioned in the link.



E 12°55'05.25"
N 56°04'39.16"
Go to Top of Page
   

- Advertisement -