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 two wheelbarrows by a pile of bricks, one with a single brick and one stacked full in vermilion

Row Mode vs Batch Mode: Measuring the Speed Difference

November 21, 2019
Pinal Dave
SQL Performance
ColumnStore Index, Compatibility Level, Execution Plan, SQL Scripts

A fair test of row mode vs batch mode changes only the execution mode. This post uses a query hint to force row mode at the same compatibility level, checks that both modes return the same rows, and times five runs of each on a three million row table. It also shows a query where batch mode gains nothing.

Read More
A figure pushing a loaded red handcart from a smooth lane onto a new stretch of rough cobbles, slowing at the seam.

Finding Regressed Queries in Query Store After a Deployment

November 20, 2019
Pinal Dave
SQL Performance
Execution Plan, Query Store, SQL CPU, SQL Server

Find regressed queries in Query Store using weighted before-and-after duration and CPU, then compare plans and changed procedure text.

Read More
An allotment plot with its gate open, older lettuce rows and a new row of seedlings inside one fence

Granting Read Access to One Schema With GRANT SELECT ON SCHEMA

November 19, 2019
Pinal Dave
SQL Tips and Tricks
Schema, SQL Login, SQL Server, SQL Server Security

Use GRANT SELECT ON SCHEMA for focused read access, test a loginless user, and check ownership chains and table-level DENY behavior.

Read More
Gouache painting of a wheelbarrow with a full vermilion crate of apples and a single apple on a plate behind

Batch Mode on Rowstore: A Simple Example in SQL Server

November 18, 2019
Pinal Dave
SQL Performance
ColumnStore Index, Compatibility Level, Execution Plan, SQL Scripts

Batch mode on rowstore lets SQL Server process rows in groups, even when the table has no columnstore index. This post builds a million row table, reads the execution mode of each plan operator, and flips four switches to show when you get batch mode and when you don’t. It also answers why a plan can stay in row mode.

Read More
A settled bookcase and a mobile bookcase suggest different patterns of access and change

How to Determine Read Intensive and Write Intensive Tables in SQL Server? – Interview Question of the Week #251

November 17, 2019
Pinal Dave
SQL Interview Questions and Answers
SQL DMV, SQL Scripts, SQL Server

Question: How to Determine Read Intensive and Write Intensive Tables in SQL Server?

Answer: The script is very simple and lets us see in the blog.

Read More
Gouache painting of an old stone bridge still open with a new footbridge beside it with a vermilion rail

Create an Index Online in SQL Server: What ONLINE = ON Locks

November 16, 2019
Pinal Dave
SQL Performance
SQL Index, SQL Lock, SQL Scripts, SQL Server

To create an index online in SQL Server, add WITH (ONLINE = ON) to CREATE INDEX, and writers keep working while the index builds. This post compares a plain build with an online build on a three million row table, measures what each one blocks and what the online build costs, and shows where it still waits.

Read More
A signalman's hand passing a brass single-line token in a hoop to a train driver's gloved hand.

Application Locks With sp_getapplock: One Job at a Time

November 15, 2019
Pinal Dave
SQL Tips and Tricks
SQL Lock, SQL Server, SQL Server Agent, SQL Stored Procedure, SQL Transactions

Use sp_getapplock to serialize a job, compare transaction and session ownership, handle return codes, and inspect a two-session test.

Read More
Previous 1 … 136 137 138 139 140 141 142 … 844 Next
  • Books
  • Testimonials
  • Privacy Policy

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