{"id":9516,"date":"2022-04-15T06:28:00","date_gmt":"2022-04-15T04:28:00","guid":{"rendered":"https:\/\/expert-only.com\/?p=9516"},"modified":"2022-08-08T17:56:57","modified_gmt":"2022-08-08T15:56:57","slug":"create-sql-server-index","status":"publish","type":"post","link":"https:\/\/expert-only.com\/en\/t-sql\/create-sql-server-index\/","title":{"rendered":"Create a SQL Server index"},"content":{"rendered":"\n<p>Create an index in SQL Server to improve the performance of queries on tables and in clustered views. Two types of indexes exists, the clustered and the nonclustered one. <\/p>\n\n\n\n<p>To create a non-clustered index, use this example and adapt it to the project requirements. Indexes are the first recommended step to performance optimization in SQL Server.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-create-a-sql-server-non-clustered-index-on-a-table\">Create a SQL Server non clustered index on a table<\/h2>\n\n\n\n<p>First, the how-to section below creates an index on the <a href=\"https:\/\/expert-only.com\/en\/t-sql\/create-table-sql-server\/\"><strong>sales table created here<\/strong><\/a>.<\/p>\n\n\n\n<p>Let&#8217;s explain the context of the example. Firstly, it&#8217;s a very basic example to show the CREATE INDEX T-SQL command and how easy it is to optimize performance. <\/p>\n\n\n\n<p>Secondly the two indexed columns are the typical ones used in large queries execution, i.e., the Year and the month. Another very common one is the date.<\/p>\n\n\n\n<p><strong>Why the large sales tables need to use some date related columns as indexed columns ? <\/strong><\/p>\n\n\n\n<p>Let&#8217;s consider any business, the managers need to see the figures in a context to know how good the sales are. To achieve this the time is the best dimension, because the time comparisons are the most common and because the business financial managers use fiscal year as references. <\/p>\n\n\n\n<p>Popular views are the yearly, quarterly, monthly, and daily ones. and as the data evolves along the fiscal year, <a href=\"https:\/\/en.wikipedia.org\/wiki\/Database_index\" target=\"_blank\" rel=\"noreferrer noopener\">indexes<\/a> evolves and follow the date.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Step 1: Create the sales table to be indexed<\/h3>\n\n\n\n<p>For instance, the sales tables have this initial structure. Use the following SQL code to create the sales table as an example for the index creation.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"mssql\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">CREATE TABLE [dbo].[SALES] \n(\n\t[Year] TINYINT,    \t\n\t[MonthName] NVARCHAR(50),  \n\t[MonthCurrent]    BIT,     \t\n\t[NumberMonth]     TINYINT,   \t\n\t[EmployeeNumber]   SMALLINT,   \n\t[NumberOfClients]   INTEGER,   \n\t[NumberOfSales]   BIGINT,   \t\n\t[Amount_ET]     NUMERIC(15,5), \n\t[Amount_IT]     DECIMAL(15,5)  \n);\n<\/pre>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"650\" height=\"594\" src=\"https:\/\/expert-only.com\/wp-content\/uploads\/2022\/05\/creer-exemple-table-ventes-index-sql-server.jpg\" alt=\"Create the SQL Server  table to be indexed in SSMS \" class=\"wp-image-7281\" srcset=\"https:\/\/expert-only.com\/wp-content\/uploads\/2022\/05\/creer-exemple-table-ventes-index-sql-server.jpg 650w, https:\/\/expert-only.com\/wp-content\/uploads\/2022\/05\/creer-exemple-table-ventes-index-sql-server-300x274.jpg 300w\" sizes=\"auto, (max-width: 650px) 100vw, 650px\" \/><figcaption>Create the SQL Server  table to be indexed in SSMS <\/figcaption><\/figure><\/div>\n\n\n<h3 class=\"wp-block-heading\">Step 2: Create the SQL Server index on the sales table using this syntax<\/h3>\n\n\n\n<p>Finally, let&#8217;s consider that on our Analytics system the main columns to filter data. It&#8217;s the year and the month name: Year and MonthName.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"mssql\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">CREATE INDEX indexYearMonth \n\tON [dbo].[SALES] ([Year], [MonthName]);\n<\/pre>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"721\" height=\"362\" src=\"https:\/\/expert-only.com\/wp-content\/uploads\/2022\/05\/creer-index-sql-server-sur-table-ventes-1.jpg\" alt=\"Create a SQL Server index and add it to the Sales table\" class=\"wp-image-7292\" srcset=\"https:\/\/expert-only.com\/wp-content\/uploads\/2022\/05\/creer-index-sql-server-sur-table-ventes-1.jpg 721w, https:\/\/expert-only.com\/wp-content\/uploads\/2022\/05\/creer-index-sql-server-sur-table-ventes-1-300x151.jpg 300w\" sizes=\"auto, (max-width: 721px) 100vw, 721px\" \/><figcaption>Create a SQL Server index and add it to the Sales table<\/figcaption><\/figure><\/div>\n\n\n<h3 class=\"wp-block-heading\">Step 3: Check the index presence and type under the table in SSMS<\/h3>\n\n\n\n<p>Expand the sales table properties and check the index presence. Note that per default the index is a non-unique and non-clustered index.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"416\" height=\"539\" src=\"https:\/\/expert-only.com\/wp-content\/uploads\/2022\/05\/creer-index-sql-server-verifier-ssms.jpg\" alt=\"Check the index presence and type under the table with SSMS\" class=\"wp-image-7298\" srcset=\"https:\/\/expert-only.com\/wp-content\/uploads\/2022\/05\/creer-index-sql-server-verifier-ssms.jpg 416w, https:\/\/expert-only.com\/wp-content\/uploads\/2022\/05\/creer-index-sql-server-verifier-ssms-232x300.jpg 232w\" sizes=\"auto, (max-width: 416px) 100vw, 416px\" \/><figcaption>Check the index presence and type under the table with SSMS<\/figcaption><\/figure><\/div>\n\n\n<p>Notes:<\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Use an existing table to create the index or create a new table that needs to be indexed.<\/li><li>Use the <strong><a href=\"https:\/\/expert-only.com\/en\/ssms\/download-sql-server-management-studio-18-ssms\/\">SQL Server Management Studio (SSMS) software<\/a><\/strong> to perform the steps and execute the queries.<\/li><\/ul>\n\n\n\n<p>Moreover, check the below T-SQL examples. Hence, the code is ready to copy and paste, so simply adjust it and execute in SQL Server Management Studio.<\/p>\n\n\n\n<p>As a result, any query using the Year and the Month in the where clause uses the newly created index. In other words, the indexYearMonth index improves the performance of the query. The index maintenance like <strong>reorganize <\/strong>and rebuild commands keeps them effective.<\/p>\n\n\n\n<p>To go further, the next step is to analyse and <strong>rebuild the index<\/strong> to organize values inside the index and statistics.<\/p>\n\n\n\n<p>In conclusion, let&#8217;s hope you enjoyed this tutorial. It&#8217;s also available below for download and offline reading in PDF format. <\/p>\n\n\n\n<p>It is a <strong><a href=\"https:\/\/expert-only.com\/wp-content\/uploads\/2022\/08\/How_to_create_a_SQL_Server_index.pdf\">MS SQL tutorial on how to create a SQL non cluster index in PDF format<\/a><\/strong>.   <\/p>\n\n\n\n<div data-wp-interactive=\"core\/file\" class=\"wp-block-file\"><object data-wp-bind--hidden=\"!state.hasPdfPreview\" hidden class=\"wp-block-file__embed\" data=\"https:\/\/expert-only.com\/wp-content\/uploads\/2022\/08\/How_to_create_a_SQL_Server_index.pdf\" type=\"application\/pdf\" style=\"width:100%;height:600px\" aria-label=\"Embed of Contenu embarqu\u00e9 How_to_create_a_SQL_Server_index..\"><\/object><a id=\"wp-block-file--media-d3a3c768-b157-4ee9-8b68-920a940441b8\" href=\"https:\/\/expert-only.com\/wp-content\/uploads\/2022\/08\/How_to_create_a_SQL_Server_index.pdf\">How_to_create_a_SQL_Server_index<\/a><a href=\"https:\/\/expert-only.com\/wp-content\/uploads\/2022\/08\/How_to_create_a_SQL_Server_index.pdf\" class=\"wp-block-file__button\" download aria-describedby=\"wp-block-file--media-d3a3c768-b157-4ee9-8b68-920a940441b8\">T\u00e9l\u00e9charger<\/a><\/div>\n\n\n\n<p>Here is another tutorial from the T-SQL series on the <strong><a href=\"https:\/\/expert-only.com\/en\/t-sql\/sql-server-pivot-example\/\">PIVOT SQL Server query to turn rows in a table into columns<\/a><\/strong>.<\/p>\n\n\n\n<figure class=\"wp-block-embed is-type-wp-embed is-provider-tutoriels-sql-et-it wp-block-embed-tutoriels-sql-et-it\"><div class=\"wp-block-embed__wrapper\">\nhttps:\/\/expert-only.com\/en\/t-sql\/sql-server-pivot-example\/\n<\/div><\/figure>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>Create an index in SQL Server to improve the performance of queries on tables and in clustered views. Two types of indexes exists, the clustered and the nonclustered one. To create a non-clustered index, use this example and adapt <a class=\"mh-excerpt-more\" href=\"https:\/\/expert-only.com\/en\/t-sql\/create-sql-server-index\/\" title=\"Create a SQL Server index\">&#8230;<\/a><\/p>\n<\/div>","protected":false},"author":1,"featured_media":6139,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[454],"tags":[627],"class_list":{"0":"post-9516","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-t-sql","8":"tag-create-en-2"},"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.7 (Yoast SEO v26.2) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Create a SQL Server index - T-SQL<\/title>\n<meta name=\"description\" content=\"To create an index in SQL Server, use this non clustered index syntax script, applied to a sales table to optimise query performance.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/expert-only.com\/en\/t-sql\/create-sql-server-index\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Create a SQL Server index\" \/>\n<meta property=\"og:description\" content=\"To create an index in SQL Server, use this non clustered index syntax script, applied to a sales table to optimise query performance.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/expert-only.com\/en\/t-sql\/create-sql-server-index\/\" \/>\n<meta property=\"og:site_name\" content=\"SQL and IT Tutorials\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/ExpertOnlyCom\/\" \/>\n<meta property=\"article:published_time\" content=\"2022-04-15T04:28:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-08-08T15:56:57+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/expert-only.com\/wp-content\/uploads\/2018\/06\/idea-93432E0FFA4_1920x1080.jpeg\" \/>\n\t<meta property=\"og:image:width\" content=\"1920\" \/>\n\t<meta property=\"og:image:height\" content=\"1080\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Expert-Only\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@expert_only\" \/>\n<meta name=\"twitter:site\" content=\"@expert_only\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Expert-Only\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/expert-only.com\/en\/t-sql\/create-sql-server-index\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/expert-only.com\/en\/t-sql\/create-sql-server-index\/\"},\"author\":{\"name\":\"Expert-Only\",\"@id\":\"https:\/\/expert-only.com\/en\/#\/schema\/person\/406a9576b52944f018739a42046873ef\"},\"headline\":\"Create a SQL Server index\",\"datePublished\":\"2022-04-15T04:28:00+00:00\",\"dateModified\":\"2022-08-08T15:56:57+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/expert-only.com\/en\/t-sql\/create-sql-server-index\/\"},\"wordCount\":576,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/expert-only.com\/en\/#organization\"},\"image\":{\"@id\":\"https:\/\/expert-only.com\/en\/t-sql\/create-sql-server-index\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/expert-only.com\/wp-content\/uploads\/2018\/06\/idea-93432E0FFA4_1920x1080.jpeg\",\"keywords\":[\"create\"],\"articleSection\":[\"T-SQL\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/expert-only.com\/en\/t-sql\/create-sql-server-index\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/expert-only.com\/en\/t-sql\/create-sql-server-index\/\",\"url\":\"https:\/\/expert-only.com\/en\/t-sql\/create-sql-server-index\/\",\"name\":\"Create a SQL Server index - T-SQL\",\"isPartOf\":{\"@id\":\"https:\/\/expert-only.com\/en\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/expert-only.com\/en\/t-sql\/create-sql-server-index\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/expert-only.com\/en\/t-sql\/create-sql-server-index\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/expert-only.com\/wp-content\/uploads\/2018\/06\/idea-93432E0FFA4_1920x1080.jpeg\",\"datePublished\":\"2022-04-15T04:28:00+00:00\",\"dateModified\":\"2022-08-08T15:56:57+00:00\",\"description\":\"To create an index in SQL Server, use this non clustered index syntax script, applied to a sales table to optimise query performance.\",\"breadcrumb\":{\"@id\":\"https:\/\/expert-only.com\/en\/t-sql\/create-sql-server-index\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/expert-only.com\/en\/t-sql\/create-sql-server-index\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/expert-only.com\/en\/t-sql\/create-sql-server-index\/#primaryimage\",\"url\":\"https:\/\/expert-only.com\/wp-content\/uploads\/2018\/06\/idea-93432E0FFA4_1920x1080.jpeg\",\"contentUrl\":\"https:\/\/expert-only.com\/wp-content\/uploads\/2018\/06\/idea-93432E0FFA4_1920x1080.jpeg\",\"width\":1920,\"height\":1080},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/expert-only.com\/en\/t-sql\/create-sql-server-index\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"en\",\"item\":\"https:\/\/expert-only.com\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create a SQL Server index\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/expert-only.com\/en\/#website\",\"url\":\"https:\/\/expert-only.com\/en\/\",\"name\":\"SQL and IT Tutorials\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/expert-only.com\/en\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/expert-only.com\/en\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/expert-only.com\/en\/#organization\",\"name\":\"Expert-Only\",\"url\":\"https:\/\/expert-only.com\/en\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/expert-only.com\/en\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/expert-only.com\/wp-content\/uploads\/2017\/09\/cropped-logo_Expert-Only.jpg\",\"contentUrl\":\"https:\/\/expert-only.com\/wp-content\/uploads\/2017\/09\/cropped-logo_Expert-Only.jpg\",\"width\":381,\"height\":174,\"caption\":\"Expert-Only\"},\"image\":{\"@id\":\"https:\/\/expert-only.com\/en\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/ExpertOnlyCom\/\",\"https:\/\/x.com\/expert_only\",\"https:\/\/www.youtube.com\/channel\/UCMS5sR_FwAetB0FmciNvUaA\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/expert-only.com\/en\/#\/schema\/person\/406a9576b52944f018739a42046873ef\",\"name\":\"Expert-Only\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/expert-only.com\/en\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/084b15660763ff5b13bb60b2f52f97bb?s=96&d=identicon&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/084b15660763ff5b13bb60b2f52f97bb?s=96&d=identicon&r=g\",\"caption\":\"Expert-Only\"}}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Create a SQL Server index - T-SQL","description":"To create an index in SQL Server, use this non clustered index syntax script, applied to a sales table to optimise query performance.","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:\/\/expert-only.com\/en\/t-sql\/create-sql-server-index\/","og_locale":"en_US","og_type":"article","og_title":"Create a SQL Server index","og_description":"To create an index in SQL Server, use this non clustered index syntax script, applied to a sales table to optimise query performance.","og_url":"https:\/\/expert-only.com\/en\/t-sql\/create-sql-server-index\/","og_site_name":"SQL and IT Tutorials","article_publisher":"https:\/\/www.facebook.com\/ExpertOnlyCom\/","article_published_time":"2022-04-15T04:28:00+00:00","article_modified_time":"2022-08-08T15:56:57+00:00","og_image":[{"width":1920,"height":1080,"url":"https:\/\/expert-only.com\/wp-content\/uploads\/2018\/06\/idea-93432E0FFA4_1920x1080.jpeg","type":"image\/jpeg"}],"author":"Expert-Only","twitter_card":"summary_large_image","twitter_creator":"@expert_only","twitter_site":"@expert_only","twitter_misc":{"Written by":"Expert-Only","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/expert-only.com\/en\/t-sql\/create-sql-server-index\/#article","isPartOf":{"@id":"https:\/\/expert-only.com\/en\/t-sql\/create-sql-server-index\/"},"author":{"name":"Expert-Only","@id":"https:\/\/expert-only.com\/en\/#\/schema\/person\/406a9576b52944f018739a42046873ef"},"headline":"Create a SQL Server index","datePublished":"2022-04-15T04:28:00+00:00","dateModified":"2022-08-08T15:56:57+00:00","mainEntityOfPage":{"@id":"https:\/\/expert-only.com\/en\/t-sql\/create-sql-server-index\/"},"wordCount":576,"commentCount":0,"publisher":{"@id":"https:\/\/expert-only.com\/en\/#organization"},"image":{"@id":"https:\/\/expert-only.com\/en\/t-sql\/create-sql-server-index\/#primaryimage"},"thumbnailUrl":"https:\/\/expert-only.com\/wp-content\/uploads\/2018\/06\/idea-93432E0FFA4_1920x1080.jpeg","keywords":["create"],"articleSection":["T-SQL"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/expert-only.com\/en\/t-sql\/create-sql-server-index\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/expert-only.com\/en\/t-sql\/create-sql-server-index\/","url":"https:\/\/expert-only.com\/en\/t-sql\/create-sql-server-index\/","name":"Create a SQL Server index - T-SQL","isPartOf":{"@id":"https:\/\/expert-only.com\/en\/#website"},"primaryImageOfPage":{"@id":"https:\/\/expert-only.com\/en\/t-sql\/create-sql-server-index\/#primaryimage"},"image":{"@id":"https:\/\/expert-only.com\/en\/t-sql\/create-sql-server-index\/#primaryimage"},"thumbnailUrl":"https:\/\/expert-only.com\/wp-content\/uploads\/2018\/06\/idea-93432E0FFA4_1920x1080.jpeg","datePublished":"2022-04-15T04:28:00+00:00","dateModified":"2022-08-08T15:56:57+00:00","description":"To create an index in SQL Server, use this non clustered index syntax script, applied to a sales table to optimise query performance.","breadcrumb":{"@id":"https:\/\/expert-only.com\/en\/t-sql\/create-sql-server-index\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/expert-only.com\/en\/t-sql\/create-sql-server-index\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/expert-only.com\/en\/t-sql\/create-sql-server-index\/#primaryimage","url":"https:\/\/expert-only.com\/wp-content\/uploads\/2018\/06\/idea-93432E0FFA4_1920x1080.jpeg","contentUrl":"https:\/\/expert-only.com\/wp-content\/uploads\/2018\/06\/idea-93432E0FFA4_1920x1080.jpeg","width":1920,"height":1080},{"@type":"BreadcrumbList","@id":"https:\/\/expert-only.com\/en\/t-sql\/create-sql-server-index\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"en","item":"https:\/\/expert-only.com\/en\/"},{"@type":"ListItem","position":2,"name":"Create a SQL Server index"}]},{"@type":"WebSite","@id":"https:\/\/expert-only.com\/en\/#website","url":"https:\/\/expert-only.com\/en\/","name":"SQL and IT Tutorials","description":"","publisher":{"@id":"https:\/\/expert-only.com\/en\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/expert-only.com\/en\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/expert-only.com\/en\/#organization","name":"Expert-Only","url":"https:\/\/expert-only.com\/en\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/expert-only.com\/en\/#\/schema\/logo\/image\/","url":"https:\/\/expert-only.com\/wp-content\/uploads\/2017\/09\/cropped-logo_Expert-Only.jpg","contentUrl":"https:\/\/expert-only.com\/wp-content\/uploads\/2017\/09\/cropped-logo_Expert-Only.jpg","width":381,"height":174,"caption":"Expert-Only"},"image":{"@id":"https:\/\/expert-only.com\/en\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/ExpertOnlyCom\/","https:\/\/x.com\/expert_only","https:\/\/www.youtube.com\/channel\/UCMS5sR_FwAetB0FmciNvUaA"]},{"@type":"Person","@id":"https:\/\/expert-only.com\/en\/#\/schema\/person\/406a9576b52944f018739a42046873ef","name":"Expert-Only","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/expert-only.com\/en\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/084b15660763ff5b13bb60b2f52f97bb?s=96&d=identicon&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/084b15660763ff5b13bb60b2f52f97bb?s=96&d=identicon&r=g","caption":"Expert-Only"}}]}},"_links":{"self":[{"href":"https:\/\/expert-only.com\/en\/wp-json\/wp\/v2\/posts\/9516","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/expert-only.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/expert-only.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/expert-only.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/expert-only.com\/en\/wp-json\/wp\/v2\/comments?post=9516"}],"version-history":[{"count":0,"href":"https:\/\/expert-only.com\/en\/wp-json\/wp\/v2\/posts\/9516\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/expert-only.com\/en\/wp-json\/wp\/v2\/media\/6139"}],"wp:attachment":[{"href":"https:\/\/expert-only.com\/en\/wp-json\/wp\/v2\/media?parent=9516"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/expert-only.com\/en\/wp-json\/wp\/v2\/categories?post=9516"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/expert-only.com\/en\/wp-json\/wp\/v2\/tags?post=9516"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}