SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Site Related Forums
 Article Discussion
 Article: Indexed Views in SQL Server 2000
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

AskSQLTeam
Ask SQLTeam Question

USA
0 Posts

Posted - 10/16/2000 :  17:22:17  Show Profile  Visit AskSQLTeam's Homepage  Reply with Quote
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 - 09/22/2004 :  12:11:55  Show Profile  Reply with Quote
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

United Kingdom
22403 Posts

Posted - 09/22/2004 :  13:34:13  Show Profile  Reply with Quote
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
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000