Course Hero Logo

2 run ddemofilesmod05setupcmd as an administrator to

Course Hero uses AI to attempt to automatically extract content from documents to surface to you and others so you can study better, e.g., in search results, to enrich docs, and more. This preview shows page 138 - 141 out of 438 pages.

2.Run D:\Demofiles\Mod05\Setup.cmd as an administrator to revert any changes.3.In the virtual machine, on the taskbar, clickSQL Server 2014 Management Studio.4.In theConnect to Serverwindow, inServer name, typeMIA-SQLand then clickConnect.5.On theFilemenu, clickOpen, clickProject/Solution, navigate toD:\Demofiles\Mod05\Demo05.ssmssln, and then clickOpen.6.On theViewmenu, clickSolution Explorer.7.Open the31 – Demonstration 3A.sqlscript file.8.Follow the instructions contained within the comments of the script file.
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
MCT USE ONLY. STUDENT USE PROHIBITED5-18Advanced IndexingSystem viewNotessys.stats_columnsColumn ID associated with the statisticDynamic Management ViewsSQL Server provides a series of dynamic management objects that contain useful information about thestructure and usage of indexes. Some of the most useful views and functions are shown in the followingtable.

Upload your study docs or become a

Course Hero member to access this document

Upload your study docs or become a

Course Hero member to access this document

End of preview. Want to read all 438 pages?

Upload your study docs or become a

Course Hero member to access this document

Term
Spring
Professor
N/A
Tags
The Lord of the Rings, Microsoft Corporation, Microsoft SQL Server

Newly uploaded documents

Show More

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture