Instead of using the status column of sysindexes, I recommend that you use the INDEXPROPERTY system function. This function exposes virtually all of the relevant information you might need about an index, works in all SQL Server versions from 7.0 up, and will maintain backward compatibility in future releases.
Dig Deeper on SQL Server Database Modeling and Design
Related Q&A from Adam Machanic
Multiple readers can sometimes read the same row simultaneously causing a false result. SQL Server 2005 expert Adam Machanic suggests modifying the ... Continue Reading
Migrating to SQL Server 2005 from SQL Server 2000 is a hefty feat when compared to upgrading from 7.0 to SQL Server 2000. Site expert Adam Machanic ... Continue Reading
SQL Server 2005 and T-SQL do have differences. The advantages and disadvantages would depend user environment as described by SQL Server 2005 expert... Continue Reading