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
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
Gouache painting of a white gift box tied with a vermilion ribbon bow on a pale counter

Unquoted Procedure Parameters: Are Single Quotes Optional?

December 10, 2020
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Scripts, SQL Server, SQL Stored Procedure

Unquoted procedure parameters work in SQL Server when the value is one plain word. This post builds a small procedure and tests which values fail without single quotes. It also shows how NULL, DEFAULT and numbers change the value.

Read More
Gouache painting of a pegboard with a spoon, a vermilion-handled screwdriver, a brush, a scoop and a mallet hanging in a row

Custom Query Shortcuts in SSMS: Run Your Own Procedure

November 19, 2020
Pinal Dave
SQL Tips and Tricks
SQL Server Management Studio, SQL Shortcut, SQL Stored Procedure

Custom query shortcuts in SSMS run a stored procedure of your own on the text you have selected. This post writes a small procedure that explains any session, tests it the way the shortcut calls it, assigns it to a free key, and explains which keys you can use.

Read More
Gouache painting of a large tangled and knotted ball of cream cord on a wooden table, one strand of it vermilion

Error 8632: Internal Error, Expression Services Limit Reached

October 29, 2020
Pinal Dave
SQL Tips and Tricks
Recompile, SQL Error Messages, SQL Stored Procedure, SQL Upgrade

Error 8632 says an expression services limit has been reached. It appeared in a few stored procedures after a SQL Server upgrade. Recreating the procedures, and the nested ones, fixed it without a restart.

Read More
Three nested frames surround one shared unfinished workpiece.

SQL SERVER – Finding Open Transactions for Session – @@TRANCOUNT

September 24, 2020
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, SQL Stored Procedure, SQL Transactions

To inspect Open Transactions for Session nesting on my connection, I use @@TRANCOUNT. It does not directly inspect another session.

Read More
Temp Table in

Dropping Temp Table in Stored Procedure – SQL in Sixty Seconds #124

September 22, 2020
Pinal Dave
SQL Video
SQL in Sixty Seconds, SQL Performance, SQL Scripts, SQL Server, SQL Stored Procedure, SQL TempDB, Temp Table

Is dropping temp table in stored procedure code really needed? In this SQL in Sixty Seconds video, I compare two procedures to show what happens.

Read More
A folded paper shelter stands beside a permanent wooden house on a workbench

What is Temp Stored Procedures? – Interview Question of the Week #294

September 20, 2020
Pinal Dave
SQL Interview Questions and Answers
SQL Scripts, SQL Server, SQL Stored Procedure, SQL TempDB, Temp Table

Temp stored procedures are the SPthat are created with the help of the # at the beginning of the name and only available until the SQL Server restarts.

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

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