SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2000 Forums
 SQL Server Administration (2000)
 SP_SPACEUSED
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

miranwar
Posting Yak Master

125 Posts

Posted - 10/06/2006 :  08:28:26  Show Profile  Reply with Quote
Hi canybody explain to me the columns returned by the SpaceUsed SP. I just need to know what is unused and what is reserved. And more imortantly how I can use this info to determine if a table is fragmented.

Kristen
Test

United Kingdom
22403 Posts

Posted - 10/06/2006 :  09:02:44  Show Profile  Reply with Quote
They are described in BoL (under sp_spaceused)

"And more imortantly how I can use this info to determine if a table is fragmented."

You need DBCC SHOWCONTIG for that - and to read the Microsoft whitepaper explaining all the output that provides!

If you are trying to set up automated defragging of your indexes have a look at Tara's blog:

http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=55210&SearchTerms=Rebuilding%20Indexes,DBCC%20CHECDB,Reindex,INDEXDEFRAG,Tara%20Blog%20Houskeeping%20Routines

Kristen
Go to Top of Page

miranwar
Posting Yak Master

125 Posts

Posted - 11/09/2006 :  04:11:19  Show Profile  Reply with Quote
I've read BOL. It does not give me much to go on. What I am confused about is the difference between Unallocated, Reserved and Unuse Space
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.03 seconds. Powered By: Snitz Forums 2000