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
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
Five wooden cups on a felt table, four turned up empty and one still covered.

NOT IN With a NULL in the List Returns No Rows

April 8, 2021
Pinal Dave
SQL Tips and Tricks
SQL NULL, SQL Operator, SQL Server, SQL Sub Query

See why NOT IN with a NULL returns no customers, then compare five sample rows, NOT EXISTS, an IS NOT NULL filter, and query plans.

Read More
A figure raising an arm at a tiny dark railway halt as a small train comes round the bend.

Azure SQL Database Serverless: Auto-Pause and What Wakes It

April 6, 2021
Pinal Dave
SQL Tips and Tricks
Cloud Computing, DBA, SQL Azure

Understand Azure SQL Database serverless limits, auto-pause, resume delays, and billing metrics before choosing an idle strategy.

Read More
A farmhouse fireplace just relit in the morning, a small flame catching on kindling under cold logs.

When Did SQL Server Last Restart? Four Ways to Check

April 2, 2021
Pinal Dave
SQL Tips and Tricks
DBA, SQL DMV, SQL Log, SQL Server, SQL TempDB

Find SQL Server’s last restart using startup metadata, tempdb, logs, and sessions, then interpret reset counters correctly.

Read More
A horse collar hanging neatly with one fastening left open

Job Steps That Fail While the Agent Job Reports Success

March 29, 2021
Pinal Dave
SQL Tips and Tricks
SQL Reports, SQL Server, SQL Server Agent

A green job history does not mean every step worked. Decode the failure routing and pair failed steps with their outcomes.

Read More
Gouache painting of a wooden table with a bowl of pears in front of a leaning mirror, with a small vermilion magnifying glass between them

Table or View in SQL Server: Check With OBJECTPROPERTY

March 24, 2021
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Table Operation, SQL View, System Object

To settle table or view in SQL Server, ask OBJECTPROPERTY. This post builds a table, a view, a synonym and a procedure, and reads the answers for each. It also shows a trap with other databases and a catalog query for every object.

Read More
Previous 1 … 33 34 35 36 37 38 39 … 570 Next
  • Books
  • Testimonials
  • Privacy Policy

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