This month's discount Comprehensive Database Performance Health Check · Testimonials
SQLAuthority with Pinal Dave
Home
  • Consulting
    • Health Check
  • Free Videos
  • All Articles
    • AI
    • SQL Performance
    • SQL Tips and Tricks
    • Interview Questions and Answers
    • SQL Puzzle
    • SQL Video
    • SQLAuthority News
    • Personal
  • Books
  • Consulting
SQL Server query window displaying cost calculations.

SQL SERVER – Index Created on View not Used Often – Observation of the View

December 21, 2010
Pinal Dave
SQL Performance
SQL Scripts, SQL View

When is an index created on view actually used? After showing it is often ignored, I demonstrate a condition where SQL Server uses it, including NOEXPAND.

Read More
SQL SERVER - Index Created on View not Used Often - Limitation of the View 12

SQL SERVER – Index Created on View not Used Often – Limitation of the View 12

December 18, 2010
Pinal Dave
SQL Tips and Tricks
SQL Index, SQL Scripts, SQL Server, SQL Training, SQL View

At my Hyderabad seminar someone asked: will an Index Created on a view be used when you query the view? Not always. Limitation 12 of views explained.

Read More
Schema-bound views illustrated by three plain tied folios beside carefully fitted wooden puzzle pieces on a study table.

Schema-Bound Views: Protect Referenced Columns

November 6, 2010
Pinal Dave
SQL Tips and Tricks
Best Practices, SQL Scripts, SQL View

Schema-bound views protect referenced columns during table changes. Compare blocked DDL with compatible additions, and check how an ordinary view can retain stale metadata until it is refreshed.

Read More
Magnifying glass tool.

SQL SERVER – List of all the Views from Database

October 29, 2010
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, SQL View

Hundreds of Views and no idea which are indexed? A quick query on sys.views lists every view with its schema and whether it is indexed or indexable.

Read More
SQL Server query execution plan.

SQL SERVER – Indexed View always Use Index on Table

October 12, 2010
Pinal Dave
SQL Tips and Tricks
SQL Index, SQL Scripts, SQL View

A table can have only one clustered index, but what about an indexed view built on the whole table? My T-SQL Tuesday post tests which index SQL Server uses.

Read More
A herbarium studio shows two separate oak cabinets storing different arrangements of the same botanical specimens.

Indexed View Quiz: The Table and Clustered Index Confusion

October 7, 2010
Pinal Dave
SQL Puzzle
Execution Plan, SQL Index, SQL Server, SQL View

An indexed view and its base table can each own a clustered index because they are separate objects. Inspect both owners in a SQL example and see why a view index does not give its base table a second clustered index.

Read More
SQL SERVER - View Over the View Not Possible with Index View - Limitations of the View 11

SQL SERVER – View Over the View Not Possible with Index View – Limitations of the View 11

September 29, 2010
Pinal Dave
SQL Tips and Tricks
SQL Index, SQL Scripts, SQL View

Why can’t you create a view over the view and index it? An index view cannot reference another view. Limitation of the view 11 shows an example.

Read More
Previous 1 2 3 4 5 6 7 8 Next
  • Books
  • Testimonials
  • Privacy Policy

© 2006 – 2026 All rights reserved. pinal @ SQLAuthority.com