Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Site Related Forums
 Article Discussion
 Article: Indexed Views in SQL Server 2000

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2000-10-16 : 17:22:17
In this excellent article Doug covers the basics of creating an Indexed View. He also goes into detail on sizing considerations and when and when not to use an Indexed View.

Article Link.

objectuser
Starting Member

14 Posts

Posted - 2004-09-22 : 12:11:55
I thought I would try using an indexed view in my application for data loads we get once a day (we currently have to do some subqueries, and I wanted to replace them with a join on an indexed view). However, the restrictions on them made it impossible. I think indexed views are pretty much useless in their current form.

Does anyone know if they are improved in SQL Server 2005?

Thanks.

--Kevin
Go to Top of Page

Kristen
Test

22859 Posts

Posted - 2004-09-22 : 13:34:13
My sentiments entirely. We used this to, for example, put a unique index on a table that permitted multiple rows with NULL - the NULL rows were excluded in the VIEW and thus we got a unique index on the not-null ones.

Ever since then we've been playing silly-B's with ARITHABORT, INSTEAD_OF triggers to work around the fact that you cann't insert through the VIEW and a bunch of other stuff.

No doubt for queries that use VIEWs with indexes that actualy had performance problems its a bonus, but the crafty use we have used them for has been a PITA.

Kristen
Go to Top of Page
   

- Advertisement -