Answer Posted / sruthi
Index created on view is called as indexed view or
materialised view.
To create index on a view we should create a view
with "schemabinding"
eg:
create view v1 with schemabinding as
select empno,ename from dbo.emp
---
while creating view with schema binding refer to table by
default owner
---
now create index on that view
--
create clustered index i1 on v1(empno)
--
now this is called as indexed view
| Is This Answer Correct ? | 7 Yes | 1 No |
Post New Answer View All Answers
Explain about temporary stored procedure?
Suppose you want to implement the one-to-one relationships while designing tables. How would you do it?
We are updating a field in sql and alter the row also.after giving the commit command the system is crashed.what will happen to the commands given,whether it will update and alter the table or not?
Stored Procedure returns data from multiple tables. How to access it in your ASP.Net code?
Explain the Ways to improve the performance of a sql azure database?
Explain transaction server explicit transaction?
What is index in an assignment?
What is pivot and unpivot?
Why use triggers?
How to write character string constants or literals in ms sql server?
What is the recommended total size of your memory optimized tables?
To which devices can a backup be created and where should these devices be located? : sql server management studio
Explain the difference between control flow and data flow?
What is history table in sql server?
What is a trigger and its types?