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 rope splicing fid separating paired strands before joining a single strand

Line Endings: CHAR(13), CHAR(10) and Files From Other Systems

April 21, 2021
Pinal Dave
SQL Tips and Tricks
Best Practices, Command Line, SQL Server

Why does a value that looks perfect fail a compare? Because of a line ending you cannot see. Five small demos make it visible.

Read More
Unmatched guide channels are inspected beside an empty receiving recess.

SQL Puzzle – Unsolved CASE Expression

April 20, 2021
Pinal Dave
SQL Puzzle
SQL CASE, SQL Scripts, SQL Server

This Unsolved CASE puzzle asks you to predict its result before execution. The preceding bitwise challenge drew more than 125 responses.

Read More
A temporary key awaits a first-use exchange beside a closed cabinet and fitting tools.

SQL SERVER – Change Password at the First Login

April 19, 2021
Pinal Dave
SQL Tips and Tricks
SQL Login, SQL Scripts, SQL Server, SQL Server Security

MUST_CHANGE requires a SQL-authenticated login to change password at its first connection. Policy options and the client workflow must support it.

Read More
Small retained shaping stubs remain distinct from a full reusable mold and working press.

SQL SERVER – AdHoc Queries and Optimize for Adhoc Workloads

April 16, 2021
Pinal Dave
SQL Tips and Tricks
Ad Hoc Query, SQL CPU, SQL Scripts, SQL Server, SQL Server Configuration

Optimize for AdHoc Queries reduces the first-use plan-cache footprint of ad hoc batches. A customer variable-query workload prompted testing.

Read More
Two beach towels thrown onto one empty deckchair at once, a cream towel covering the seat and a red one sliding off.

Handling Duplicate Key Errors 2627 and 2601 in a CATCH Block

April 15, 2021
Pinal Dave
SQL Tips and Tricks
SQL Constraint and Keys, SQL Error Messages, SQL Server, SQL Transactions

Handle duplicate key errors 2627 and 2601 in TRY CATCH, preserve unexpected errors, and avoid racing existence checks during inserts.

Read More
Gouache painting of four sailboats moored beside a calm dock with posts topped by small vermilion lights

OS Thread of a Session: Map Session ID to Windows Thread ID

April 14, 2021
Pinal Dave
SQL Performance
SQL CPU, SQL DMV, SQL Scripts, SQL Server

To find the OS thread of a session, join sys.dm_os_tasks to sys.dm_os_threads on the worker address. This post reads the map for your own session and for every user session. It explains why idle sessions have no row, why parallel queries have several, and how to follow a thread in Performance Monitor.

Read More
A wide tractor at a narrow field gateway, turning along the hedge to take the long way round the field.

JDBC and sendStringParametersAsUnicode: The Hidden Index Scan

April 12, 2021
Pinal Dave
SQL Performance
Java, SQL Datatype, SQL Index, SQL Server, Unicode

Diagnose sendStringParametersAsUnicode conversions, align JDBC parameters with varchar indexes, and preserve required Unicode data.

Read More
Previous 1 … 22 23 24 25 26 27 28 … 420 Next
  • Books
  • Testimonials
  • Privacy Policy

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