Wrox Programmer Forums
Go Back   Wrox Programmer Forums > SQL Server > SQL Server 2005 > SQL Server 2005
|
SQL Server 2005 General discussion of SQL Server *2005* version only.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2005 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 20th, 2008, 02:27 AM
Authorized User
 
Join Date: May 2007
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default Retrieve Index Status of a table

Hi All,

I want to know the status of an index whether it is corrupted or it needs to be reindexed etc ?

I used the sp_MShelpindex tablename stored procedure to retrieve the status also.

In the status column it is showing as 0,2 and 2000 values . what are these values ?

Thanks

Murali





With Regards,
Muralidharan.D
__________________
With Regards,
Muralidharan.D
 
Old June 6th, 2008, 04:13 PM
SQLScott's Avatar
Wrox Author
 
Join Date: Dec 2004
Posts: 338
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Since this is an undocumented stored procedure, your chances of finding out what these values mean are probably slim to none.

Did you try sys.dm_db_index_physical_stats?


========================
Scott Klein
Author of:
Professional SQL Server 2005 XML
Professional WCF Programming: .NET Development with the Windows Communication Foundation
Professional LINQ
========================





Similar Threads
Thread Thread Starter Forum Replies Last Post
'AOIndex' is not an index in this table junedali10 Access 1 April 12th, 2008 05:25 PM
Table Index Problem JDrown Access VBA 1 March 17th, 2006 12:23 PM
more than one index on a table madhukp SQL Server ASP 3 September 11th, 2004 05:46 AM
Index On Table In VB6 p2pbal SQL Server ASP 1 September 3rd, 2004 05:19 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.