Wrox Programmer Forums
|
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 7th, 2003, 12:50 PM
Registered User
 
Join Date: Nov 2003
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default Index View

How to make a view Indexed?How a indexed view differs from a normal view?

Asish

 
Old November 7th, 2003, 01:12 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 839
Thanks: 0
Thanked 1 Time in 1 Post
Default

You make a view indexed by creating an index, using the CREATE INDEX statement, referencing the view.

There is a rather long list of restrictions on what the view may or may not contain. See BOL "indexed views", "Creating an Indexed view" for the list.

An indexed view may be faster than a 'normal' view, since the query optimizer may be able to take advantage of the index when the view is referenced in a query. For example, if you JOIN a table (or view) to a view, the index may make the JOIN substantially faster.

Jeff Mason
Custom Apps, Inc.
www.custom-apps.com





Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating Index on View - SQL prince500 SQL Server 2005 5 September 7th, 2011 07:35 AM
Urgent - Send mail with plain view and html view ashish.dadhwal ASP.NET 2.0 Professional 0 November 27th, 2008 01:49 AM
Cannot index the view '. It contains one or more d RehanHussain SQL Server 2000 2 April 12th, 2008 03:57 PM
populate details view or list view non empty rows iinfoque ASP.NET 2.0 Basics 0 March 11th, 2007 06:11 AM
View dynamic content with MS Index Server? shogunmike Classic ASP Basics 0 June 26th, 2003 12:39 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.