Posts

Check SQL Server Parameter Sniffing in 45 Seconds. The "45 Seconds DBA Series". Part 15

Before we dive into today's topic, if you missed my previous post you can take a look at Check Index Fragmentation in 45 Seconds. Execution Engine | Part 14 . 👉 If you found this deep-dive helpful, feel free to check out the ads—your support helps me keep creating high-quality SQL Server content for the community. Check SQL Server Parameter Sniffing in 45 Seconds Execution Engine | Part 15 Stop chasing ghosts and start identifying plan cache poisoning instantly. In this post, I’ll show you how to detect Parameter Sniffing in under 45 seconds using DMVs. This is the #1 reason why a query is fast in SSMS but crawls in your application! 🧠 TL;DR BOX ✔️ What: SQL Server creates a plan based on the *first* parameter provided (the "sniffed" value). ✔️ The Trap: A plan optimized for 1 row is disastrous when the next execution needs 1,000,0...

Check SQL Server Index Fragmentation (and When It Doesn’t Matter) in 45 Seconds. The "45 Seconds DBA Series". Part 14

Before we dive into today's topic, if you missed my previous post you can take a look at Check Missing Indexes (and Why They Lie) in 45 Seconds. Execution Engine | Part 13 . 👉 If you found this deep-dive helpful, feel free to check out the ads—your support helps me keep creating high-quality SQL Server content for the community. Check SQL Server Index Fragmentation in 45 Seconds Execution Engine | Part 14 Stop wasting maintenance windows on fragmentation that doesn't affect performance. Most DBAs obsess over fragmentation percentages without realizing that modern storage and small table sizes make most defragmentation efforts useless. In this post, I will show you how to identify the only indexes that actually need your attention. 🧠 TL;DR BOX ✔️ Ignore small indexes: If an index has fewer than 1,000 pages, fragmentation is statistically irrelevant...

Check SQL Server Missing Indexes (and Why They Lie) in 45 Seconds. The "45 Seconds DBA Series". Part 13

Before we dive into today's topic, if you missed my previous post you can take a look at Check Cardinality Estimation Issues in 45 Seconds. Execution Engine | Part 12 . 👉 If you found this deep-dive helpful, feel free to check out the ads—your support helps me keep creating high-quality SQL Server content for the community. Check SQL Server Missing Indexes (and Why They Lie) in 45 Seconds Execution Engine Deep Dive | Part 13 In this post, you will learn how to extract the highest impact missing indexes from the plan cache and why blindly applying "green text" suggestions can destroy your server's write performance. 🧠 TL;DR BOX ✔️ Use sys.dm_db_missing_index_details to identify gaps the Optimizer noticed during compilation. ✔️ The "Missing Index" feature is a hint , not a command; it doesn't consider existing indexes or write o...

Check SQL Server Cardinality Estimation Issues in 45 Seconds. The "45 Seconds DBA Series". Part 12

Before we dive into today's topic, if you missed my previous post you can take a look at Check Execution Plans in 45 Seconds . 👉 If you found this deep-dive helpful, feel free to check out the ads—your support helps me keep creating high-quality SQL Server content for the community. Check SQL Server Cardinality Estimation Issues in 45 Seconds Execution Engine Deep Dive | Part 12 In this post, I will show you how to identify the silent killer of performance: the "Estimate vs Actual" row gap. Mastering Cardinality Estimation is the difference between a sub-second response and a server-wide timeout. 🧠 TL;DR BOX ✔️ Cardinality Estimation (CE) is the Optimizer's prediction of how many rows a query will process. ✔️ A massive discrepancy between Estimated and Actual rows leads to sub-optimal join choices and memory grant spills. ✔️ Primary culpri...

Check SQL Server Execution Plans in 45 Seconds. The "45 Seconds DBA Series". Part 11

Before we dive into today's topic, if you missed my previous post you can take a look at SQL Server 2025 Built-in Chunking and Vector Support AI Functions, the Brutal Truth. From SQL to AI series, Part 1 . 👉 If you found this deep-dive helpful, feel free to check out the ads—your support helps me keep creating high-quality SQL Server content for the community. Check SQL Server Execution Plans in 45 Seconds Master the Execution Engine: The "45 Seconds DBA Series" | Part 11 Stop guessing why your queries are slow. In 45 seconds, I’ll show you how to intercept the Query Optimizer's roadmap and pinpoint bottlenecks before they kill your production environment! 🧠 TL;DR ✔️ Use DMVs to extract XML plans for currently running requests instantly 🛠️ ✔️ Identify Index Scans vs. Seeks to verify SARGability 🔍 ✔️ Spot "Fat Arrows...

SQL Server 2025 Built-in Chunking and Vector Support AI Functions, the Brutal Truth. From SQL to AI series, Part 1

Image
Before we dive into today's topic, if you missed my previous post you can take a look at  Check Parallelism Issues in 45 Seconds. From Symptoms to Root Clause. The "45 Seconds DBA Series" – What Real DBAs Check First | Part 10 🥇" . 👉 If you found this deep-dive helpful, feel free to check out the ads—your support helps me keep creating high-quality SQL Server content for the community. SQL Server 2025 Has AI Functions… But Not Where You Think What if I told you that SQL Server can now generate embeddings and chunk text… directly in T-SQL? 👉 It’s true. 👉 But also misleading. ⚡ TL;DR (Reality Check) ✔️ AI functions exist (AI_GENERATE_CHUNKS / AI_GENERATE_EMBEDDINGS) ✔️ They are real T-SQL functions ❗ But they work ONLY in cloud-enabled environments ❗ Not fully available in standard SQL Server on-prem ✔️ SQL Server is becoming an AI orchestrator, not an AI engine 🧠 The Illusion You may have seen code like this: SELECT C.chunk_id, ...

Check Parallelism Issues in 45 Seconds. From Symptoms to Root Clause. The "45 Seconds DBA Series" – What Real DBAs Check First | Part 10 🥇"

Image
Before we dive into today's topic, if you missed my previous post you can take a look at How AI systems actually store and retrieve memory . 👉 If you found this deep-dive helpful, feel free to check out the ads—your support helps me keep creating high-quality SQL Server content for the community. Check Parallelism Issues in 45 Seconds Is parallelism boosting your performance or acting as a silent CPU killer? In just 45 seconds, I’ll show you how to diagnose skew and configuration bottlenecks that drain your server's resources. 🧠 TL;DR: Parallelism Diagnostics ✔️ CXPACKET vs. CXCONSUMER: Learn to ignore the noise and focus on producer skew. 🛠️ ✔️ MaxDOP & Cost Threshold: Identify if your instance defaults are strangling your workload. 🚀 ✔️ Skew Detection: Spot uneven thread distribution before it causes massive wait times. 📊 ...

How AI systems actually store and retrieve memory

Image
Before we dive into today's topic, if you missed my previous post you can take a look at Why SQL Server versions might disappear in the future? . 👉 If you found this deep-dive helpful, feel free to check out the ads—your support helps me keep creating high-quality SQL Server content for the community. How AI systems actually store and retrieve memory ChatGPT doesn’t "remember" anything—it searches. In this post, I’ll strip away the marketing hype to show you the math-driven retrieval architecture that every modern DBA must understand to stay relevant. 🧠 TL;DR: AI Memory Mechanics ✔️ Embeddings: Turning text into high-dimensional numerical coordinates (Vectors). 🧪 ✔️ Vector Databases: Specialized stores for "Similarity Search" instead of exact matches. 🛠️ ✔️ SQL Server 202...