MCT USE ONLY. STUDENT USE PROHIBITEDDeveloping Microsoft® SQL Server® Databases5-17Lesson 4Designing Effective Nonclustered IndexesBefore you start to implement nonclustered indexes, you need to design them appropriately. In thislesson, you will learn how to find information about the indexes that have been created and how to createfiltered indexes.Lesson ObjectivesAfter completing this lesson, you will be able to:Consider various methods for obtaining index information.Use filtered indexes.Methods for Obtaining Index InformationYou might require information about existingindexes before you create, modify, or remove anindex. SQL Server provides many ways to obtaininformation about indexes.SQL Server Management StudioSQL Server Management Studio offers a variety ofways to obtain information about indexes. ObjectExplorer lists the indexes that are associated withtables. This includes indexes that users have createdand those indexes that relate to PRIMARY KEY andUNIQUE constraints in cases where SQL Server hascreated indexes to support those constraints.Each index has a property page that details the structure of the index and the characteristics of itsoperational, usage, and physical layout.SQL Server Management Studio also includes a set of prebuilt reports that show the state of a database.Many of these reports relate to index structure and usage.System Stored Procedures and Catalog ViewsThe sp_helpindex system stored procedure returns details of the indexes that have been created on aspecified table.SQL Server provides a series of catalog views that provide information about indexes. Some of the moreuseful views are shown in the following table.System viewNotessys.indexesIndex type, filegroup, or partition scheme ID, and thecurrent setting of index options that are stored in metadatasys.index_columnsColumn ID, position within the index, type (key or nonkey),and sort order (ASCorDESC)sys.statsStatistics associated with a table, including statistic nameand whether it was created automatically or by a user