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 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
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
Gouache painting of a shut wooden cabinet with a vermilion key stuck halfway in the keyhole beside a ring of brass keys

msdb Upgrade Error 916: Fix the Database Owner

July 19, 2019
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Server Security, SQL Upgrade, System Database

A msdb upgrade error can stop the service at the last upgrade step. The post reads the ERRORLOG, shows a read-only owner check, and walks through the four steps that fix the owner of msdb. The fix is one ALTER AUTHORIZATION statement.

Read More
Gouache painting of a garden tap with a vermilion wheel feeding a pinched hose into a wooden trough

Disable Resource Governor: Why RECONFIGURE Turns It On

July 17, 2019
Pinal Dave
SQL Tips and Tricks
Resource Governor, SQL Memory, SQL Scripts, SQL Server

To disable Resource Governor, run ALTER RESOURCE GOVERNOR DISABLE. The post shows why RECONFIGURE enables the feature, with a tested script that restores the state it finds. It also explains how saved pool limits come back to life.

Read More
Illustrated cover: Swap Without a Temp

SQL SERVER – Swap Column Values In Table

July 16, 2019
Pinal Dave
SQL Tips and Tricks
SQL Column, SQL Scripts, SQL Server

Here is a question asked to me during Comprehensive Database Performance Health Check. The question was about how to swap column values in a table.

Read More
Previous 1 … 73 74 75 76 77 78 79 … 570 Next
  • Books
  • Testimonials
  • Privacy Policy

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