If there exist a index on the table, and we then make a
view on that table (include the indexed column from base
table) than why do we require indexing on view?Doesnt it
create an overhead?

Answer Posted / sql2000

Lets start on what a view is, view is a name given to a
select statement. The select statement is executed when the
view name is called.

When you create index on the view the select statement is
materialized into a table and we have the contents of the
select statement as a table. This makes it faster at times
to run select statements on rather than the actual tables.
Hence it makes sense to create indexes on views.

Let me know if anyone has a better point of view on
this. :)

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can sql server instances be hidden? : sql server security

746


what are the reporting service components in SSRS?

139


how do you implement one-to-one, one-to-many and many-to-many relationships while designing tables? : Sql server database administration

779


Explain about builtinadministrator?

768


How to connect a database with sql express.?

750






What is implicit cursors?

744


What is the new security features added in sql server 2014? : sql server security

752


Explain the cursor lock types?

734


How to send email from database?

754


Explain throw statement in sql server 2008?

734


What is save transaction and save point?

832


How do I run sql server 2014?

691


Can you give me some DBCC command options?(Database consistency check) - DBCC CHECKDB - Ensures that tables in the db and the indexes are correctly linked.and DBCC CHECKALLOC - To check that all pages in a db are correctly allocated. DBCC SQLPERF - It gives report on current usage of transaction log in percentage. DBCC CHECKFILEGROUP - Checks all tables file group for any damage.

2222


What is scheduled job and how to create it?

722


What are rest-style architecture's?

163