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
Matching cloth panels preserve their motif under two different folding methods.

SQL SERVER – Rebuilding Index with Compression

September 1, 2021
Pinal Dave
SQL Performance
SQL Index, SQL Scripts, SQL Server

To rebuild an Index with Compression, I target its own settings and partitions. Customer ROW and PAGE results need separate evaluation.

Read More
Gouache painting of a large bolt standing in a nut with a small vermilion knob on top, and a wrench lying beside it

Trigger Blocks Index Maintenance: How to Let Rebuilds Pass

August 26, 2021
Pinal Dave
SQL Performance
SQL Index, SQL Scripts, SQL Server, SQL Trigger

A trigger blocks index maintenance when it guards every index event, because a rebuild is an index event too. This post shows the failure, then a trigger that reads EVENTDATA and lets rebuilds through while it still blocks create, drop and disable.

Read More
Gouache painting of a toolbox with a clear lid and a vermilion padlock

Prevent Index Changes in SQL Server With a DDL Trigger

August 24, 2021
Pinal Dave
SQL Tips and Tricks
SQL Index, SQL Scripts, SQL Server Security, SQL Trigger

To prevent index changes in one database, create a DDL trigger on the index events that rolls back the statement and says why. This post tests the trigger, shows what it blocks, and lists the index changes that slip past it.

Read More
Gouache painting of a sunny courtyard with wooden stools holding saplings, the front stool vermilion

Index a Computed Column in SQL Server

August 20, 2021
Pinal Dave
SQL Performance
Computed Column, SQL Index, SQL Performance, SQL Scripts

To index a computed column, define the formula once on the table and create a normal index on it. This post loads 200,000 rows, shows the scan, then the seek after the index, and tests the rules that decide whether SQL Server accepts the column.

Read More
Specific Index

Queries Using Specific Index – SQL in Sixty Seconds #180

July 20, 2021
Pinal Dave
SQL Video
SQL DMV, SQL in Sixty Seconds, SQL Index, SQL Server

The challenge I face is that often DBAs ask me to prove that indexes are really not used by queries. Let us learn about Queries Using Specific Index.

Read More
Gouache painting of two rows of brass keys on hooks, one key with a vermilion handle, and a brass padlock hanging below

Find Queries Using an Index in the SQL Server Plan Cache

July 15, 2021
Pinal Dave
SQL Performance
SQL Cache, SQL DMV, SQL Index, SQL Scripts

Find queries using an index by searching cached plans for its exact name. See the script, a surprise result, and what an unused index costs in SQL Server.

Read More
Count Sum

One Scan for 3 Count Sum – SQL in Sixty Seconds #178

July 2, 2021
Pinal Dave
SQL Tips and Tricks
Execution Plan, SQL Function, SQL in Sixty Seconds, SQL Index, SQL Scripts, SQL Server

Well, the answer is pretty straight forward and that is what we are going to see in today’s video of One Scan for 3 Count Sum.

Read More
Previous 1 … 4 5 6 7 8 9 10 … 62 Next
  • Books
  • Testimonials
  • Privacy Policy

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