C# Tutorials and offshore development in India
    Tutorials   Resources   Forum   Communities   Interview   Jobs   Projects   Offshore Development    
Silverlight Tutorials | Mentor | Code Converter | Articles | Code Factory | Computer Jokes | Members | Peer Appraisal | IT Companies | Bookmarks | Revenue Sharing |


Prizes & Awards
My Profile



Active Members
TodayLast 7 Days more...

New Feature: Community Sites: Create your own .NET community website and start earning from Google AdSense ! It's Free !






How to find the database size in live server


Posted Date: 30 Jun 2008      Total Responses: 4

Posted By: Radha       Member Level: Silver     Points: 1



My live server is sql 2000,
I want to find the database size in my live server

How can i do it





Responses

Author: http://dotnetvj.blogspot.com    30 Jun 2008Member Level: DiamondRating:     Points: 6

Hi

SQL Server has a handy little system stored procedure named sp_spaceused that will return the space used by a database or by a particular table. To determine the size used by the database, simply run:


EXEC sp_spaceused


This will return two result sets, the first one containing the database name, size, and unallocated space and the second containing a breakdown of the database's size into how much size is reserved and how much of that is taken up by data, how much by indexes, and how much remains unused.

Check out the below link for more information
http://www.4guysfromrolla.com/webtech/032906-1.shtml

Thanks -- Vj
http://dotnetvj.blogspot.com


Thanks -- Vj

http://dotnetvj.blogspot.com



Author: Sandesh S    30 Jun 2008Member Level: GoldRating:     Points: 2

Hi,

go to the properties of the database in Emterprisemanager to get the DB size. please check the attachment



Author: Bunty    01 Jul 2008Member Level: DiamondRating:     Points: 3

Hi,

You can use the system defined stored procedure to calculate the size of the database.

EXEC sp_spaceused

Execute the above query and you will get the desired ouput.

Thanks and Regards
S.S.Bajoria


Thanks & Regards
S.S.Bajoria



Author: Sriram    01 Jul 2008Member Level: GoldRating:     Points: 0

exec sp_spaceused


Post Reply
You must Sign In to post a response.
Next : data migration-urgent
Previous : how can i reset identity column in sql server to 1 programatically
Return to Discussion Forum
Post New Message
Category: SQL Server

Related Messages



dotNet Slackers   BizTalk Adaptors    Web Design


Contact Us    Privacy Policy    Terms Of Use