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
Gouache painting: a wooden loom holding a half-woven linen runner in cream and sage, the last stretch unpicked into loose threads on the floor, with one vermilion knot marking where the finished cloth ends

SAVE TRANSACTION: Roll Back Half a Transaction

September 15, 2021
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Lock, SQL Stored Procedure, SQL Transactions

SAVE TRANSACTION sets a marker inside an open transaction. You can roll back to it and keep the earlier work. This post tests it on SQL Server 2025. It shows why a nested BEGIN TRAN can’t do the same and what XACT_STATE() returns after an error.

Read More
A carved wooden master and three matching relief tiles sit beside a screw press in a textured gouache workshop.

SQL SERVER – Easiest Way to Copy All Stored Procedure Definitions

September 8, 2021
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, SQL Server Management Studio, SQL Stored Procedure

Object Explorer Details helps copy procedure definitions through SSMS scripting. I select the procedures and review the generated script before execution.

Read More
A whole assembly is inspected separately from its three internal component workpieces.

SQL SERVER – Stored Procedure Timing and Cached Measurements

August 11, 2021
Pinal Dave
SQL Performance
Execution Plan, SQL Server Management Studio, SQL Statistics, SQL Stored Procedure

SET STATISTICS TIME reports CPU and elapsed execution time for Stored Procedures. A customer wanted to measure a run without adding statements manually.

Read More
An open fitted drawer and corresponding sample tray preserve their compartment sequence.

SQL SERVER – Get Column Names

February 25, 2021
Pinal Dave
SQL Tips and Tricks
SQL Column, SQL Scripts, SQL Server, SQL Stored Procedure

I Get Column names using a schema-qualified table and a defined column order. The four methods use corrected filters.

Read More
Hide in Code

Hide Code in SSMS – SQL in Sixty Seconds #154

February 3, 2021
Pinal Dave
SQL Video
SQL in Sixty Seconds, SQL Scripts, SQL Server, SQL Server Encryption, SQL Server Management Studio, SQL Server Security, SQL Stored Procedure

I have received so many emails from all of you to create a video on the topic of SQL SERVER – Hide Code in SSMS. Here is the video on the topic.

Read More
Gouache painting of a wooden cabinet with a reddish-brown sliding door half closed over shelves of bowls and plates, with a small vermilion dot on the door

Hide Procedure Code in SSMS: What WITH ENCRYPTION Covers

February 2, 2021
Pinal Dave
SQL Tips and Tricks
SQL Server Encryption, SQL Server Management Studio, SQL Server Security, SQL Stored Procedure

To hide procedure code, create the procedure WITH ENCRYPTION. A demo shows what the clause blocks: the text, the definition and the plan. It also shows the ALTER trap that unhides a procedure, and why this is obfuscation and not security.

Read More
Completed paper assemblies await secure consolidation beside a closed press.

SQL SERVER – Delayed Durability and Flushing Log Files

December 30, 2020
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, SQL Stored Procedure, Transaction Log

Flushing with sys.sp_flush_log hardens preceding committed delayed-durable transactions in the current database. I use delayed durability only with an accepted tradeoff.

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

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