Skip to content
SQLFolks
Menu
  • Tips & Tricks
  • Indexes
  • Query Hints
  • AI
  • Links
  • Contact

Category: Indexes

Indexes / Tips & Tricks

SQL Index Creation Tutorial (Part 3): Composite Index Construction

Example: Estimated Execution Plan: 1. Open the index properties and select the Predicates section: 2. Copy the content: 3. Paste it into a prepared query and clean up the unnecessary …

Indexes / Tips & Tricks

SQL Index Creation Tutorial (Part 2): Performance and Execution Plans

Data source: Original query Estimated Execution Plan 1 Estimated Subtree Cost: 586.232 → far too high, indicating long execution time and heavy server load. The plan shows: Creating indexes Index …

Indexes / Tips & Tricks

SQL Index Creation Tutorial (Part 1): Heap Tables and Basics

Example: Data source: Heap table (a heap without a clustered index) Address_TEST, 9,963,912 rows, no nonclustered indexes. Query: Estimated Execution Plan 1: Estimated Subtree Cost: 143.514 – high number = …

SEARCH:

Brent Ozar’s Blog

“But NOLOCK won’t hurt me if I’m using an index!”
“But NOLOCK won’t hurt me if I’m using an index!”

NOLOCK is bad and you probably shouldn’t use it, but every time I mention that publicly, the pushback just keeps coming. I don’t know why people so firmly believe that their [...]

[Video] Office Hours on Mount Charleston
[Video] Office Hours on Mount Charleston

For this episode, I’m up in the mountains just outside Vegas, enjoying the nice cool temperatures, spending the weekend at Mount Charleston. Let’s go through your top-voted questions from https://pollgab.com/room/brento. [...]

Database Animations: How SQL Server’s JSON Indexes Work
Database Animations: How SQL Server’s JSON Indexes Work

By popular demand, SQL Server 2025 added JSON indexes. You can eat the cake of being able to store practically schema-less JSON blobs as part of each row, and have [...]

Set Your Application Names Before You Wish You Had.
Set Your Application Names Before You Wish You Had.

When you run monitoring queries like sp_BlitzWho and sp_WhoIsActive, you wanna see the program names that are running the queries. It’s super useful when you’ve got multiple apps running on [...]

Copyright © 2026 SQLFolks – OnePress theme by FameThemes