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 !




Find space occupied by a table in a database


Posted Date: 27 May 2008    Resource Type: Code Snippets    Category: SQL DBA

Posted By: imamjani shaik       Member Level: Silver
Rating:     Points: 10



SP_SpaceUsed 'TableName'

it will give you the following parameters as a result set .


eg:

Table Name Rows Reserved data index_Size unused
========== ==== ========= ==== ========== ======
Table_name 200963 27544 KB 26880 KB 560 KB 104 KB




Responses

Author: imamjani shaik    27 May 2008Member Level: Silver   Points : 2
Nice code


Author: Sohail    27 May 2008Member Level: Bronze   Points : 2
It's very useful snippet


Author: suresh kumar    09 Sep 2008Member Level: Bronze   Points : 1
hi...can any one explain the following code
SP_SpaceUsed 'TableName'
how it is working and its functionality...


Author: UltimateRengan    09 Sep 2008Member Level: Diamond   Points : 1
hi,
nice code.continue to post valuable article.
Regards
G.Renganathan
www.ultimaterengan.blogspot.com


Feedbacks      
Popular Tags   What are tags ?   Search Tags  
(No tags found.)

Post Feedback


This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must Sign In to post a response.
Next Resource: How to find Index in a Table
Previous Resource: How to change TEMPDB settings permanently
Return to Discussion Resource Index
Post New Resource
Category: SQL DBA


Post resources and earn money!
 
Related Resources



dotNet Slackers   BizTalk Adaptors    Web Design

web conferencing

Contact Us    Privacy Policy    Terms Of Use