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 red high-jump bar hanging at a slant, one end still on its peg and the other on the landing mat

XACT_ABORT: Why a Half-Done Transaction Can Survive an Error

June 26, 2012
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Server, SQL Stored Procedure, SQL Transactions

Use XACT_ABORT to prevent partial writes, inspect transaction state after an error, and build a TRY CATCH pattern with reliable rollback.

Read More
A row of identical lifebuoy rings hung on posts along a wooden harbor pier, the nearest one vermilion.

An Error Handling Template for Stored Procedures With THROW

June 11, 2012
Pinal Dave
SQL Tips and Tricks
Best Practices, SQL Error Messages, SQL Server, SQL Stored Procedure, SQL Transactions

Build an error handling template with XACT_ABORT, XACT_STATE, durable error logging, and THROW, then test a forced procedure failure.

Read More
A wooden drilling jig clamped to a workbench guiding a drill, three finished boards with identical holes stacked beside it.

Designing a Simple ETL Framework

April 30, 2012
Pinal Dave
SQL Tips and Tricks
ETL, SQL Log, SQL Server, SQL Server Agent, SQL Stored Procedure

An ETL framework in SQL Server needs a small set of configuration, run logs, restart checkpoints, and alerts that operators can trust.

Read More
Table of columns and datatypes.

SQL SERVER – sp_describe_first_result_set New System Stored Procedure in SQL Server 2012

March 31, 2012
Pinal Dave
SQL Tips and Tricks
SQL Stored Procedure

SQL Server 2012 adds the new system stored procedure sp_describe_first_result_set. I try it on a query and a view to see what metadata it returns.

Read More
A plain map spread on a wooden table with a red ribbon marking a new detour route, a brass compass beside it.

Stored Procedure Recompile Quiz: What Forces a New Plan?

January 15, 2012
Pinal Dave
SQL Puzzle
Execution Plan, Parameter Sniffing, Recompile, SQL Stored Procedure

This Stored Procedure Recompile Quiz asks which action makes SQL Server build a new plan for a procedure. The answer is a new index on a table it reads. A tested script uses plan counters to show what reuses the plan and what rebuilds it.

Read More
A hand checking an unlit firework rocket standing in a bottle on a garden wall, the matches still closed.

SET NOEXEC and PARSEONLY: Checking a Script Without Running It

January 4, 2012
Pinal Dave
SQL Tips and Tricks
SQL Coding Standards, SQL Dependency, SQL Server, SQL Stored Procedure

Use PARSEONLY and NOEXEC to inspect scripts without executing them, understand deferred references, and check existing module dependencies.

Read More
SQL SERVER - Bad Practice of Using Keywords as an Object Name - Avoid Using Keywords as an Object

SQL SERVER – Bad Practice of Using Keywords as an Object Name – Avoid Using Keywords as an Object

December 9, 2011
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Stored Procedure

Why using keywords as an object name is a bad practice: a stored procedure named GO runs with EXEC GO, and the result can surprise you.

Read More
Previous 1 … 15 16 17 18 19 20 21 … 35 Next
  • Books
  • Testimonials
  • Privacy Policy

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