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
temptable

SQL SERVER – Performance: Optimizing High Volume OR Conditions through TempTable

October 2, 2023
Pinal Dave
SQL Performance
SQL Operator, SQL Performance, Temp Table

We explore an alternative approach when dealing with high volumes of ‘OR’ conditions in our SQL queries: the use of a TempTable.

Read More
evenodd

SQL SERVER – Steps to Identify with Odd and Even Rows

September 28, 2023
Pinal Dave
SQL Tips and Tricks
SQL TempDB, Temp Table

Sometimes, when working with SQL, you might need to do something special with odd and even rows in your table. This can be a bit tricky.

Read More
11tips

11 Essential Tips for Avoiding Common SQL Server Performance Tuning Mistakes

February 1, 2023
Pinal Dave
SQL Performance
Normalization, Software Development, SQL Backup and Restore, SQL Cursor, SQL Data Storage, SQL Datatype, SQL Index, SQL Server, SQL Server Security, SQL Statistics, Temp Table

This blog post will cover 11 tips for avoiding common SQL server mistakes. From indexing to security, these tips will help you optimize your database’s performance.

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
parallel queries

SQL SERVER – Table Variables, Temp Tables and Parallel Queries

June 7, 2021
Pinal Dave
SQL Performance
Parallel, SQL CPU, SQL Scripts, SQL Server, SQL Variable, Temp Table

I heard an interesting comment from a client and that made me write a blog post. Their point was about table variables, temp tables, and parallel queries.

Read More
inserting sp_who2

SQL SERVER – Inserting sp_who2 Into a Table

December 17, 2020
Pinal Dave
SQL Tips and Tricks
SQL DMV, SQL Monitoring, SQL Scripts, SQL Server, Temp Table

I should also have included the script for method 1 discussed in the blog post. Let us learn a method of inserting sp_who2 into a table.

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
1 2 3 4 … 6 Next
  • Books
  • Testimonials
  • Privacy Policy

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