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
A leather satchel on a station bench, its strap buckled tight but its brass clasp hanging open

Listing Driver, Encryption and Auth Scheme for Every Connection

September 3, 2019
Pinal Dave
SQL Tips and Tricks
SQL Connection, SQL DMV, SQL Server, SQL Server Encryption, SQL Server Security

Inspect the auth scheme, encryption, driver interface, and protocol for current SQL Server connections, then group the results clearly.

Read More
A garden path of alternating cream and blue slabs from a red slab at the gate, one slab missing by a tree root

A Schedule Table That Repeats Every Other Week

September 2, 2019
Pinal Dave
SQL Tips and Tricks
SQL System Table, SQL Table Operation, Table Partitioning, Temp Table

Build an every other week schedule in T-SQL, skip holiday dates, find the next occurrence, and check rota weeks from one anchor.

Read More
An already ordered line of containers travels along a conveyor

Do Stream Aggregate Operator Always Need Sort Operator? – Interview Question of the Week #240

September 1, 2019
Pinal Dave
SQL Interview Questions and Answers
Execution Plan, Parallel, SQL Operator, SQL Scripts, SQL Server

Question: Do Stream Aggregate Operator Always Need Sort Operator?

Answer: Absolutely No.Before I explain this question a bit more in detail.

Read More
Gouache painting of a row of fruit baskets, three covered and clasped and one open vermilion basket of peaches

READPAST Query Hint: Skip Locked Rows in SQL Server

August 31, 2019
Pinal Dave
SQL Tips and Tricks
Query Hint, SQL Lock, SQL Scripts, SQL Transactions

The READPAST query hint makes a read skip rows that another transaction has locked, instead of waiting for them. This post builds a five-seat demo, runs it in two windows and lists the cases where the hint does nothing. It also shows the work queue pattern that pairs READPAST with UPDLOCK.

Read More
Illustrated cover: Stream Aggregate vs Gather Streams

SQL SERVER – Is Stream Aggregate is Same as Gather Streams of Parallelism?

August 30, 2019
Pinal Dave
SQL Tips and Tricks
Execution Plan, Parallel, SQL CPU, SQL Operator, SQL Scripts, SQL Server

Is Stream Aggregate is Same as Gather Streams of Parallelism? – This was one of the brilliant questions I had received during my recent engagement.

Read More
Gouache painting of a wooden marble run with three blocked channels and a vermilion marble in the open one

ENABLE_PARALLEL_PLAN_PREFERENCE Limits: Rows Per Thread

August 29, 2019
Pinal Dave
SQL Tips and Tricks
Parallel, Query Hint, SQL CPU, SQL Scripts

The ENABLE_PARALLEL_PLAN_PREFERENCE limits are easy to miss: the hint can’t make every query parallel, and it can’t spread rows evenly over the threads. This post proves three limits from the last actual plan of demo queries, with the rows each thread processed and the reason a plan stays serial.

Read More
Gouache illustration of Public role permissions, with a shared entrance key rack separate from individual locked cabinets.

SQL SERVER – Public Role Permissions and Effective Security Risk

August 28, 2019
Pinal Dave
SQL Tips and Tricks
SQL Login, SQL Scripts, SQL Server, SQL Server Security

Every database user belongs to Public and cannot be removed from that role. A reader asked whether the role should be eliminated.

Read More
Previous 1 … 147 148 149 150 151 152 153 … 843 Next
  • Books
  • Testimonials
  • Privacy Policy

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