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 of a cello, a violin and a harp with a small music stand and a single vermilion tuning fork between them

Dynamics SQL Server Settings: Five Checks for NAV, AX and CRM

February 5, 2020
Pinal Dave
SQL Performance
MAXDOP, SQL Index, SQL Scripts, SQL Statistics, SQL TempDB

Dynamics SQL Server settings decide most of the speed you get from NAV, AX and CRM, because you rarely control the application code. Five read-only checks cover tempdb, autogrowth, MAXDOP, automatic statistics and statistics age. Each one comes with a short query and a clear rule.

Read More
Gouache painting of small round cafe tables on a stone terrace, two sage and one vermilion, with a stack of chairs by the shed door

TempDB Metadata Tables: Check, Enable and Count Them

January 29, 2020
Pinal Dave
SQL Performance
In-Memory OLTP, SQL Scripts, SQL Server 2019, SQL Server Configuration, SQL TempDB

The tempdb metadata tables can live in memory, and four short steps tell you whether yours do. This post checks the setting, shows how to turn it on and off, and counts the tables SQL Server moves. It also says when the feature is worth a restart.

Read More
Illustrated cover: Temp Table vs Table Variable

SQL SERVER – Temp Table vs Table Variable – Cardinality Estimation

January 17, 2020
Pinal Dave
SQL Performance
Execution Plan, SQL Scripts, SQL Server, SQL TempDB, Temp Table

I had a very interesting conversation with one of my clients about Cardinality Estimation for Temp Table vs Table Variable. Let us discuss it today.

Read More
Sorted paper fills a worktable while excess slips rest in a side basin

What is TempDB Spill in SQL Server? – Interview Question of the Week #259

January 12, 2020
Pinal Dave
SQL Interview Questions and Answers
Execution Plan, SQL Memory, SQL Scripts, SQL Server, SQL TempDB

When SQL Server uses TempDB when any query does not have enough memory to do its operation, it is called TempDB Spill. Let’s learn today.

Read More
A lone railway carriage standing lit at a platform after its engine has uncoupled and left.

GLOBAL_TEMPORARY_TABLE_AUTO_DROP: Keeping ## Tables Alive on Purpose

December 26, 2019
Pinal Dave
SQL Tips and Tricks
SQL Server, SQL Server Configuration, SQL TempDB, Temp Table

Understand GLOBAL_TEMPORARY_TABLE_AUTO_DROP, its version and database scope, explicit cleanup, and the risks of shared global tables.

Read More
Gouache painting of two matching baskets of sage pears on a market stall, one holding a single vermilion pear

Missing tempdb Files: master_files vs database_files

December 6, 2019
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Scripts, SQL TempDB

Missing tempdb files show up as a mismatch between sys.master_files and tempdb.sys.database_files. This post compares the two with a query, simulates the missing files on a copy of the catalog, and shows the error log message that gives the cause. The fix is to correct the path and restart.

Read More
Illustrated cover: Table Variable vs Temp Table

SQL SERVER – Table Variables or Temp Tables – Performance Comparison – SELECT

September 23, 2019
Pinal Dave
SQL Tips and Tricks
SQL Scripts, SQL Server, SQL TempDB, SQL Variable, Temp Table

Today we are going to discuss the performance comparison of table variables and temp tables when we are running SELECT queries.

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

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