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 four wheelbarrows of apples in an orchard with the fullest one in vermilion

Rows Read Per Thread: Four Ways to See Them in SQL Server

July 26, 2019
Pinal Dave
SQL Tips and Tricks
Execution Plan, Parallel, SQL DMV, SQL Scripts

Rows read per thread show whether a parallel query shares its work evenly. The post shows two plan based methods, a T-SQL query over the last actual plan, and a live DMV for running queries. A 500,000 row demo proves the threads add up to the table.

Read More
A restricted valve limits flow from a large vessel into a smaller receiving basin.

SQL SERVER – Query Specific Wait Statistics and Performance Tuning

July 25, 2019
Pinal Dave
SQL Performance
Resource Governor, SQL Memory, SQL Server, SQL Server Management Studio, SQL Wait Stats

Query Specific Wait Statistics helped explain a sudden customer-query slowdown. The remaining workload ran normally, and recompilation had not helped.

Read More
Gouache painting of a wall of cubbyholes each holding one boot and a vermilion boot waiting at an occupied cubby

Unique Index Performance: What a UNIQUE Index Saves

July 24, 2019
Pinal Dave
SQL Performance
Execution Plan, SQL Index, SQL Performance, SQL Scripts

Unique index performance gains come from what the optimizer learns, not from smaller pages. A tested demo compares pages, reads, plans and CPU for a plain index and a unique index. It also shows the error a duplicate causes.

Read More
A hermit crab in a fresh shell beside its empty old one, a red starfish nearby.

Running SQL Server Under a Group Managed Service Account

July 23, 2019
Pinal Dave
SQL Tips and Tricks
SQL Server, SQL Server Configuration, SQL Server Security, SQL Server Services

Set up a group managed service account for SQL Server Engine and Agent, then verify permissions, SPNs, and Kerberos connections.

Read More
Gouache painting of a small drawer cabinet on a sewing table with a vermilion thread spool inside one open drawer

Temp Table Scope in Dynamic SQL: Who Can See What

July 22, 2019
Pinal Dave
SQL Tips and Tricks
Dynamic SQL, SQL Scripts, SQL TempDB, Temp Table

Temp table scope decides what dynamic SQL and stored procedures can read. Tested demos show a child reading a parent table, a procedure that fails without it, a dynamic table shape and the error a typo causes. A card lists the rules.

Read More
A wagon carries a heavy load of spare wheels in addition to its working wheels

Can an Index Reduce Performance of SELECT Query? – Interview Question of the Week #234

July 21, 2019
Pinal Dave
SQL Interview Questions and Answers

Question: Can an Index Reduce Performance of SELECT Query? There is a huge misconception that Indexes does not impact SELECT queries negatively.

Read More
Gouache painting of a long vermilion fruit bowl in a market aisle with small private baskets under the counter

Dynamic SQL Temp Table: Why It Disappears and How to Keep It

July 20, 2019
Pinal Dave
SQL Tips and Tricks
Dynamic SQL, SQL Scripts, SQL TempDB, Temp Table

A dynamic SQL temp table is dropped when its dynamic batch ends, so the main code cannot read it. A global temp table keeps the data, and a per session name keeps it safe. Every step is tested, including the second session clash.

Read More
Previous 1 … 153 154 155 156 157 158 159 … 844 Next
  • Books
  • Testimonials
  • Privacy Policy

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