Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Indexed views in SQL Server 2014 object explorer without index node

In the SQL Server 2014 Management Studio's object explorer indexed views with schemabinding don't have an index node. Thus, you can create and drop Indexes for views only via T-SQL. The SQL Server Management Studio 2012 still shows the index node.

Has anybody experienced the same or is there some Management Studio setting in version 12.0.2000.8 which I am missing?

Many thanks in advance.

Marcus

like image 779
user1291867 Avatar asked Jul 10 '14 14:07

user1291867


People also ask

Can views be indexed in SQL Server?

Indexes can only be created on views which have the same owner as the referenced table or tables. This is also called an intact ownership-chain between the view and the table(s). Typically, when table and view reside within the same schema, the same schema-owner applies to all objects within the schema.

Can we create index on views?

You cannot create an index over a view, which is just a query. You can, instead, create an index over a materialized view. A materialized view is a table which is created by evaluating a view, so that you can create an index over it.

What is the restriction on indexed view?

It can't contain COUNT, MIN, MAX, TOP, outer joins, or a few other keywords or elements. You can't modify the underlying tables and columns. The view is created with the WITH SCHEMABINDING option.

Why can't I use outer join in an indexed view?

Q: Why can't I use OUTER JOIN in an Indexed view? A: Rows can logically disappear from an Indexed view based on OUTER JOIN when you insert data into a base table. This makes the OUTER JOIN view to be increasingly updated, which is relatively difficult to implement.


1 Answers

This has been fixed in Cumulative Update 5, check here and download from Microsoft site: https://support.microsoft.com/en-us/kb/3014193

like image 111
Manoj Pandey Avatar answered Sep 17 '22 13:09

Manoj Pandey