{"id":245,"date":"2012-06-04T09:51:06","date_gmt":"2012-06-04T09:51:06","guid":{"rendered":"https:\/\/sqlserverlearner.azurewebsites.net\/2012\/06\/04\/sql-server-2008-filtered-index\/"},"modified":"2012-06-04T09:51:06","modified_gmt":"2012-06-04T09:51:06","slug":"sql-server-2008-filtered-index","status":"publish","type":"post","link":"https:\/\/sqlserverlearner.com\/2012\/06\/04\/sql-server-2008-filtered-index\/","title":{"rendered":"sql server 2008 filtered index"},"content":{"rendered":"

Filtered index is an index that is filtered.
\nFiltered index contains a where clause, so that the index is only created on the set of rows filtered by the where clause.<\/p>\n

Example:
\n[sql]
\nUSE AdventureWorks
\nGO
\nCREATE NONCLUSTERED INDEX VendorURLNotNull
\n ON Purchasing.Vendor (AccountNumber,Name)
\n WHERE PurchasingWebServiceURL IS NOT NULL ;
\n[\/sql]<\/p>\n","protected":false},"excerpt":{"rendered":"

Filtered index is an index that is filtered. Filtered index contains a where clause, so that the index is only created on the set of rows filtered by the where clause. Example: [sql] USE AdventureWorks GO CREATE NONCLUSTERED INDEX VendorURLNotNull ON Purchasing.Vendor (AccountNumber,Name) WHERE PurchasingWebServiceURL IS NOT NULL ; [\/sql]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2132],"tags":[2133,2134,2135,2136,2137,2138],"_links":{"self":[{"href":"https:\/\/sqlserverlearner.com\/wp-json\/wp\/v2\/posts\/245"}],"collection":[{"href":"https:\/\/sqlserverlearner.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sqlserverlearner.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sqlserverlearner.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sqlserverlearner.com\/wp-json\/wp\/v2\/comments?post=245"}],"version-history":[{"count":0,"href":"https:\/\/sqlserverlearner.com\/wp-json\/wp\/v2\/posts\/245\/revisions"}],"wp:attachment":[{"href":"https:\/\/sqlserverlearner.com\/wp-json\/wp\/v2\/media?parent=245"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sqlserverlearner.com\/wp-json\/wp\/v2\/categories?post=245"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sqlserverlearner.com\/wp-json\/wp\/v2\/tags?post=245"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}