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
with recompile

SQL SERVER – Understanding WITH RECOMPILE in Stored Procedures

November 25, 2024
Pinal Dave
SQL Performance
Recompile, SQL Stored Procedure

The culprit? Parameter sniffing. The solution? You guessed it: WITH RECOMPILE. Comprehensive Database Performance Health Check

Read More
A flour-dusted kitchen floor at dawn with a trail of small mouse prints from the pantry door to a crumb.

Logging Agent Jobs That Call Stored Procedures

August 15, 2024
Pinal Dave
SQL Tips and Tricks
DBA, SQL Server, SQL Server Agent, SQL Stored Procedure

Improve logging Agent jobs with procedure run records, start and end events, captured errors, step output, and history correlation.

Read More
Extended Events

Capturing Stored Procedure Executions with Extended Events in SQL Server

July 11, 2024
Pinal Dave
SQL Performance
SQL Extended Events, SQL Stored Procedure

Capturing stored procedure executions with Extended Events: set up a session with module_end, run a sample procedure, and query the captured data.

Read More
A lawn bowls green with the jack in place, a bowl rolling toward it and a hand holding a measuring string.

Given-When-Then for Database Tests

July 24, 2023
Pinal Dave
SQL Tips and Tricks
Best Practices, Software Development, SQL Server, SQL Stored Procedure, Testing

Use Given-When-Then for readable database tests with known input, explicit THROW checks, and transaction rollback after each case.

Read More
Accessing Objects

SQL SERVER – Resolving Deadlock by Accessing Objects in the Same Order

June 21, 2023
Pinal Dave
SQL Tips and Tricks
Deadlock, SQL Stored Procedure

In Understanding SQL Server Deadlocks, I mentioned that one way to avoid or resolve deadlock is by accessing objects in the same order.

Read More
A hand holding a brass pass token to a locked iron turnstile between two sections of an empty stadium.

Cross-Database Ownership Chaining: Why It Is Off and What to Use

April 25, 2023
Pinal Dave
SQL Tips and Tricks
DBA, SQL Server Encryption, SQL Server Security, SQL Stored Procedure

Understand cross-database ownership chaining, inspect its scope, and use signed procedures for narrow access between SQL Server databases.

Read More
A market square water pump pouring into a bucket with a smaller bucket nested inside it, water spilling over.

INSERT EXEC: Capturing a Procedure’s Result Set and Its Limits

November 24, 2022
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Server, SQL Stored Procedure, Temp Table

Capture rows with INSERT EXEC, match result columns, understand nested and multiple-result limits, and choose supported alternatives.

Read More
1 2 3 4 … 35 Next
  • Books
  • Testimonials
  • Privacy Policy

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