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
Gouache painting of a shelf of cloth-bound books with one book tilted out of the row and a vermilion ribbon bookmark hanging below it

Find the Last Read and Write Time of Every Table in SQL Server

October 31, 2010
Pinal Dave
SQL Tips and Tricks
SQL DMV, SQL Index, SQL Scripts, SQL Server

Find the last read and write time of every table in SQL Server with sys.dm_db_index_usage_stats. The tests show what counts as a read, why an insert counts as a write, what an index rebuild does to the numbers, and what wipes them.

Read More
A half-mown lawn at dusk, the push mower parked where the last stripe ended, a red cloth on its handle.

Resumable ADD CONSTRAINT in SQL Server 2022: Pausing a Primary Key Build

October 26, 2010
Pinal Dave
SQL Tips and Tricks
Primary Key, SQL Constraint and Keys, SQL Index, SQL Server, SQL Server 2022

Use resumable ADD CONSTRAINT in SQL Server 2022 to pause a key build, inspect progress, resume safely, and understand abort behavior.

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
An open hand holding two nearly identical red ladybirds, one with a single extra small dot.

Accent-Insensitive Searches: Finding Jose and José Together

October 11, 2010
Pinal Dave
SQL Tips and Tricks
Computed Column, SQL Collation, SQL Index, SQL Server

Build accent-insensitive searches with explicit collations, compare case rules, and index a computed search column for consistent lookup.

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
A wooden loom, a reusable shuttle, wound wool and an ordered thread comb.

NO_PERFORMANCE_SPOOL: Compare the Work Before Keeping the Hint

October 2, 2010
Pinal Dave
SQL Performance
SQL Index, SQL Performance, SQL Scripts, SQL Server 2016

NO_PERFORMANCE_SPOOL changes one query optimization decision. A guarded private fixture compares baseline work, the optional hint and a supporting inner index. The article explains how to preserve results and assess actual child work without promising a plan shape.

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 … 37 38 39 40 41 42 43 … 62 Next
  • Books
  • Testimonials
  • Privacy Policy

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