{"id":1746,"date":"2019-04-19T11:00:58","date_gmt":"2019-04-19T04:00:58","guid":{"rendered":"http:\/\/www.sqlservertutorial.net\/?page_id=1746"},"modified":"2024-03-14T20:39:33","modified_gmt":"2024-03-14T13:39:33","slug":"sql-server-indexes","status":"publish","type":"page","link":"https:\/\/www.sqlservertutorial.net\/sql-server-indexes\/","title":{"rendered":"SQL Server Indexes"},"content":{"rendered":"<div class=\"wp-block-image\">\n<figure class=\"alignright\"><img loading=\"lazy\" decoding=\"async\" width=\"150\" height=\"150\" src=\"https:\/\/www.sqlservertutorial.net\/wp-content\/uploads\/SQL-Server-Indexes.png\" alt=\"SQL Server Indexes\" class=\"wp-image-1799\"\/><\/figure>\n<\/div>\n\n\n<p>Indexes are special data structures associated with tables or views that help speed up the query. SQL Server provides two types of indexes: clustered index and non-clustered index.<\/p>\n\n\n\n<p>In this section, you will learn everything you need to know about indexes to come up with a good index strategy and optimize your queries.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.sqlservertutorial.net\/sql-server-indexes\/sql-server-clustered-indexes\/\">Clustered indexes<\/a> &#8211; introduction to clustered indexes and learn how to create clustered indexes for tables.<\/li>\n\n\n\n<li><a href=\"https:\/\/www.sqlservertutorial.net\/sql-server-indexes\/sql-server-create-index\/\">Create nonclustered indexes<\/a> &#8211; learn how to create non-clustered indexes using the <code>CREATE INDEX<\/code> statement.<\/li>\n\n\n\n<li><a href=\"https:\/\/www.sqlservertutorial.net\/sql-server-indexes\/sql-server-rename-index\/\">Rename indexes<\/a> &#8211; replace the current index name with the new name using sp_rename stored procedure and SQL Server Management Studio.<\/li>\n\n\n\n<li><a href=\"https:\/\/www.sqlservertutorial.net\/sql-server-indexes\/sql-server-disable-indexes\/\">Disable indexes<\/a> &#8211; show you how to disable indexes of a table to make the indexes ineffective.<\/li>\n\n\n\n<li><a href=\"https:\/\/www.sqlservertutorial.net\/sql-server-indexes\/sql-server-enable-indexes\/\">Enable indexes<\/a> &#8211; learn various statements to enable one or all indexes on a table.<\/li>\n\n\n\n<li><a href=\"https:\/\/www.sqlservertutorial.net\/sql-server-indexes\/sql-server-unique-index\/\">Unique indexes<\/a> &#8211; enforce the uniqueness of values in one or more columns.<\/li>\n\n\n\n<li><a href=\"https:\/\/www.sqlservertutorial.net\/sql-server-indexes\/sql-server-drop-index\/\">Drop indexes<\/a> &#8211; describe how to&nbsp;drop indexes from one or more tables.<\/li>\n\n\n\n<li><a href=\"https:\/\/www.sqlservertutorial.net\/sql-server-indexes\/sql-server-indexes-with-included-columns\/\">Indexes with included columns<\/a> &#8211; guide you on how to add non-key columns to a nonclustered index to improve the speed of queries.<\/li>\n\n\n\n<li><a href=\"https:\/\/www.sqlservertutorial.net\/sql-server-indexes\/sql-server-filtered-indexes\/\">Filtered indexes<\/a> &#8211; learn how to create an index on a portion of rows in a table.<\/li>\n\n\n\n<li><a href=\"https:\/\/www.sqlservertutorial.net\/sql-server-indexes\/sql-server-indexes-on-computed-columns\/\">Indexes on computed columns<\/a> &#8211; walk you through how to simulate function-based indexes using the indexes on computed columns.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>In this section, you will learn everything you need to know about the SQL Server indexes to come up with a good index strategy and optimize your queries.<\/p>\n","protected":false},"author":1,"featured_media":2736,"parent":0,"menu_order":5,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-1746","page","type-page","status-publish","has-post-thumbnail","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>An Essential Guide to SQL Server Indexes<\/title>\n<meta name=\"description\" content=\"In this section, you will learn everything you need to know about the SQL Server indexes to come up with a good index strategy and optimize your queries.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.sqlservertutorial.net\/sql-server-indexes\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"An Essential Guide to SQL Server Indexes\" \/>\n<meta property=\"og:description\" content=\"In this section, you will learn everything you need to know about the SQL Server indexes to come up with a good index strategy and optimize your queries.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.sqlservertutorial.net\/sql-server-indexes\/\" \/>\n<meta property=\"og:site_name\" content=\"SQL Server Tutorial\" \/>\n<meta property=\"article:modified_time\" content=\"2024-03-14T13:39:33+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.sqlservertutorial.net\\\/sql-server-indexes\\\/\",\"url\":\"https:\\\/\\\/www.sqlservertutorial.net\\\/sql-server-indexes\\\/\",\"name\":\"An Essential Guide to SQL Server Indexes\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.sqlservertutorial.net\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.sqlservertutorial.net\\\/sql-server-indexes\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.sqlservertutorial.net\\\/sql-server-indexes\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.sqlservertutorial.net\\\/wp-content\\\/uploads\\\/sql-server-indexes.svg\",\"datePublished\":\"2019-04-19T04:00:58+00:00\",\"dateModified\":\"2024-03-14T13:39:33+00:00\",\"description\":\"In this section, you will learn everything you need to know about the SQL Server indexes to come up with a good index strategy and optimize your queries.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.sqlservertutorial.net\\\/sql-server-indexes\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.sqlservertutorial.net\\\/sql-server-indexes\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.sqlservertutorial.net\\\/sql-server-indexes\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.sqlservertutorial.net\\\/wp-content\\\/uploads\\\/sql-server-indexes.svg\",\"contentUrl\":\"https:\\\/\\\/www.sqlservertutorial.net\\\/wp-content\\\/uploads\\\/sql-server-indexes.svg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.sqlservertutorial.net\\\/sql-server-indexes\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.sqlservertutorial.net\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"SQL Server Indexes\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.sqlservertutorial.net\\\/#website\",\"url\":\"https:\\\/\\\/www.sqlservertutorial.net\\\/\",\"name\":\"SQL Server Tutorial\",\"description\":\"The Practical SQL Server Tutorial\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.sqlservertutorial.net\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"An Essential Guide to SQL Server Indexes","description":"In this section, you will learn everything you need to know about the SQL Server indexes to come up with a good index strategy and optimize your queries.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.sqlservertutorial.net\/sql-server-indexes\/","og_locale":"en_US","og_type":"article","og_title":"An Essential Guide to SQL Server Indexes","og_description":"In this section, you will learn everything you need to know about the SQL Server indexes to come up with a good index strategy and optimize your queries.","og_url":"https:\/\/www.sqlservertutorial.net\/sql-server-indexes\/","og_site_name":"SQL Server Tutorial","article_modified_time":"2024-03-14T13:39:33+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.sqlservertutorial.net\/sql-server-indexes\/","url":"https:\/\/www.sqlservertutorial.net\/sql-server-indexes\/","name":"An Essential Guide to SQL Server Indexes","isPartOf":{"@id":"https:\/\/www.sqlservertutorial.net\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.sqlservertutorial.net\/sql-server-indexes\/#primaryimage"},"image":{"@id":"https:\/\/www.sqlservertutorial.net\/sql-server-indexes\/#primaryimage"},"thumbnailUrl":"https:\/\/www.sqlservertutorial.net\/wp-content\/uploads\/sql-server-indexes.svg","datePublished":"2019-04-19T04:00:58+00:00","dateModified":"2024-03-14T13:39:33+00:00","description":"In this section, you will learn everything you need to know about the SQL Server indexes to come up with a good index strategy and optimize your queries.","breadcrumb":{"@id":"https:\/\/www.sqlservertutorial.net\/sql-server-indexes\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.sqlservertutorial.net\/sql-server-indexes\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.sqlservertutorial.net\/sql-server-indexes\/#primaryimage","url":"https:\/\/www.sqlservertutorial.net\/wp-content\/uploads\/sql-server-indexes.svg","contentUrl":"https:\/\/www.sqlservertutorial.net\/wp-content\/uploads\/sql-server-indexes.svg"},{"@type":"BreadcrumbList","@id":"https:\/\/www.sqlservertutorial.net\/sql-server-indexes\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.sqlservertutorial.net\/"},{"@type":"ListItem","position":2,"name":"SQL Server Indexes"}]},{"@type":"WebSite","@id":"https:\/\/www.sqlservertutorial.net\/#website","url":"https:\/\/www.sqlservertutorial.net\/","name":"SQL Server Tutorial","description":"The Practical SQL Server Tutorial","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.sqlservertutorial.net\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"}]}},"_links":{"self":[{"href":"https:\/\/www.sqlservertutorial.net\/wp-json\/wp\/v2\/pages\/1746","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.sqlservertutorial.net\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.sqlservertutorial.net\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.sqlservertutorial.net\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.sqlservertutorial.net\/wp-json\/wp\/v2\/comments?post=1746"}],"version-history":[{"count":2,"href":"https:\/\/www.sqlservertutorial.net\/wp-json\/wp\/v2\/pages\/1746\/revisions"}],"predecessor-version":[{"id":3581,"href":"https:\/\/www.sqlservertutorial.net\/wp-json\/wp\/v2\/pages\/1746\/revisions\/3581"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.sqlservertutorial.net\/wp-json\/wp\/v2\/media\/2736"}],"wp:attachment":[{"href":"https:\/\/www.sqlservertutorial.net\/wp-json\/wp\/v2\/media?parent=1746"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}