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 size

Author  Topic 

Moozzie
Starting Member

17 Posts

Posted - 2007-12-14 : 05:04:03
Hi foks!

How can i see what the size of my mssql database is?

Thanks!

harsh_athalye
Master Smack Fu Yak Hacker

5581 Posts

Posted - 2007-12-14 : 05:10:22
[code]EXEC sp_spaceused[/code]

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

Moozzie
Starting Member

17 Posts

Posted - 2007-12-14 : 05:27:05
Oke thank you, but can I also see the size per table ?
Go to Top of Page

harsh_athalye
Master Smack Fu Yak Hacker

5581 Posts

Posted - 2007-12-14 : 05:29:48
Yes you can. Pass table name as an argument.

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

Moozzie
Starting Member

17 Posts

Posted - 2007-12-14 : 05:35:53
Oke thank you again, Is there a site with all these commands so I can learn them?
Go to Top of Page

harsh_athalye
Master Smack Fu Yak Hacker

5581 Posts

Posted - 2007-12-14 : 05:40:55
http://msdn2.microsoft.com/en-us/library/aa256841(SQL.80).aspx

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

Moozzie
Starting Member

17 Posts

Posted - 2007-12-14 : 05:44:24
Thank you for all your help :D
Go to Top of Page

rmiao
Master Smack Fu Yak Hacker

7266 Posts

Posted - 2007-12-15 : 01:01:36
Books online is your friend.
Go to Top of Page
   

- Advertisement -