Microsoft SQL Server
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsDatabaseMicrosoft SQL Server

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
  #1  
Old October 5th, 2004, 05:20 AM
nsmanian nsmanian is offline
Registered User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Posts: 2 nsmanian User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Exclamation find size of a index

sp_spaceused aaa
go
select * from sysindexes where id='229575856'
go
select (409*8) [clustered index]
go
select ( 248*8) [non clustered index ]
go



name rows reserved data index_size unused
-------------------- ----------- ------------------ ------------------ ------------------ ------------------
aaa 99999 5392 KB 3272 KB 2032 KB 88 KB

dpages reserved used
----------- ----------- -----------
409 674 663
248 256 251

(2 row(s) affected)


-----------
3272

(1 row(s) affected)


-----------
1984

(1 row(s) affected)

pl. give explanation as how is the size of the clustered index equal to the size of the table and hence what is the size of the non clustered index.

Reply With Quote
Reply

Viewing: ASP Free ForumsDatabaseMicrosoft SQL Server > find size of a index


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway