Re: Indexed Views
From: Tom Moreau (tom_at_dont.spam.me.cips.ca)
Date: 12/30/04
- Next message: Tom Moreau: "Re: Indexed Views"
- Previous message: Steve Z: "Re: Indexed Views"
- In reply to: Steve Z: "RE: Indexed Views"
- Next in thread: Steve Z: "Re: Indexed Views"
- Reply: Steve Z: "Re: Indexed Views"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 30 Dec 2004 14:34:03 -0500
Not entirely true. Create and indexed view and try:
select
*
from
v with (noexpand)
--
Tom
---------------------------------------------------------------
Thomas A. Moreau, BSc, PhD, MCSE, MCDBA
SQL Server MVP
Columnist, SQL Server Professional
Toronto, ON Canada
www.pinnaclepublishing.com
"Steve Z" <SteveZ@discussions.microsoft.com> wrote in message
news:186BC65D-F912-4585-8952-1C00F7E8BCD9@microsoft.com...
pg 326 Professional SQL Server2000 Programming - WROX publishers...
"If probably deserves to be reiterated: Indexed views are only supported by
Enterprise, DEveloper and Evaluation editions. The other editions...allow
you to create an index on a view (to avoid syntax errors when migrating to
one of the other editions), but the query optimzer will not use the Indexed
View in the query plan.
"Steve Z" wrote:
> Pg 443 of Inside MS SQL Server 2000...
>
> The first index you must build on a view is a clustered index, and since
the
> clestered index contains all the data at its leaf level, this index
actually
> does materialize the view. The view's data is physically stored at the
leaf
> level of the clustered index...
>
> {There are many requirements for being able to index a view...to see if
you
> can index a view}
>
> SELECT ObjectProperty(object_id('SomeViewName'),'IsIndexable')
>
> Returning 1 means you can index - otherwise you have something in the view
> that makes it not indexable (TOP, DISTINCT, subqueries - the list goes
on).
>
> "Steve Z" wrote:
>
> > My understanding is that indexing a view will "materialize" that view in
only
> > the ENTERPRISE edition. Otherwise, it's "simulated" - so you won't see
the
> > same speed results in a different edition.
> >
> > "Ron" wrote:
> >
> > > According to:
> > > http://msdn.microsoft.com/library/default.asp?
> > > url=/library/en-us/dnsql2k/html/indexedviews1.asp?
> > > frame=true
> > >
> > > "Indexed views can be created in any edition of SQL Server
> > > 2000" (Read the Note on the page) and According to BOL:
> > >
> > > "You can create indexed views only if you install
> > > Microsoft SQL Server 2000 Enterprise Edition or Microsoft
> > > SQL Server 2000 Developer Edition".
> > >
> > > Am I Missing something ?. Is this functionality came with
> > > one of the service packs ?
> > >
> > >
> > >
> > >
> > >
- Next message: Tom Moreau: "Re: Indexed Views"
- Previous message: Steve Z: "Re: Indexed Views"
- In reply to: Steve Z: "RE: Indexed Views"
- Next in thread: Steve Z: "Re: Indexed Views"
- Reply: Steve Z: "Re: Indexed Views"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|