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

Latest Posts

AI / Tips & Tricks

SQL Studio Generated by AI (Copilot & Claude)

A lightweight SSMS‑style SQL dashboard built in PowerShell and WPF. It loads multiple SQL files as tabs, executes queries across one or more servers, displays results in an embedded browser, …

Tips & Tricks

Availability Group – How to Reduce False Failovers During Short Infrastructure Outages

To reduce false failovers during short infrastructure outages, it is common to increase: 1. LeaseTimeout — communication timeout between SQL Server Availability Group and WSFC from 20s to 60s SQL: …

Query Hints / Tips & Tricks

Unique Incremental Number for Each Inserted Row without Using an IDENTITY Column

If you need to generate a unique incremental number for each inserted row without using an IDENTITY column, you must protect the MAX() value lookup inside a transaction. This prevents …

Tips & Tricks

Database in SUSPECT State Due to DTC: How to Resolve

DATABASE REPAIR CHECKLIST Step 1 — Find the stuck distributed transaction If you see a GUID → go to Step 2.If you see all zeros → go to Step 3. …

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 …

Tips & Tricks

How to Enable SQL Email in SQL Express with T‑SQL

Query Hints / Tips & Tricks

Optimize Linked Server Performance with MAXDOP Settings

The working solution is to set Openquery:

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 = …

AI / Query Hints / Tips & Tricks

Integrate Ollama AI with SQL Server 2025 for Parallel Execution

If you have already installed Ollama server, for example based on this article Setting Up Ollama for SQL Server 2025: A Guide – John Deardurff, then you need to register …

Posts navigation

Older posts
SEARCH:

Brent Ozar’s Blog

I’m Coming to the #PassDataSummit in Seattle!
I’m Coming to the #PassDataSummit in Seattle!

The lineup for the PASS Data Community Summit Seattle event was just released,and I’m proud to share that I’ll be teaching my new all-day pre-conference workshop. Dev-Prod Demon Hunters: Finding [...]

We’re Discontinuing SQL ConstantCare and the Consultant Toolkit. Here’s Why.
We’re Discontinuing SQL ConstantCare and the Consultant Toolkit. Here’s Why.

About ten years ago, I sketched out an idea for a different kind of SQL Server monitoring tool: one that gathered data just once per day, and gave you a [...]

[Video] Office Hours: Off St. Thomas
[Video] Office Hours: Off St. Thomas

I’m at sea again, this time cruising aboard the Disney Treasure off of St. Thomas. Let’s go through your top-voted questions from https://pollgab.com/room/brento. 00:00 Start 01:40 DbaMan: You have been [...]

And Then There Was The Time RCSI Actually Made Query Results More Accurate.
And Then There Was The Time RCSI Actually Made Query Results More Accurate.

Normally when I tell people about SQL Server’s optimistic concurrency isolation levels, Read Committed Snapshot Isolation (RCSI) and Snapshot Isolation (SI), I have to give them a little speech about [...]

Copyright © 2026 SQLFolks – OnePress theme by FameThemes