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
Illustrated cover: Last Page Contention

SQL SERVER – Last Page Insert PAGELATCH_EX Contention Due to Identity Column

May 5, 2020
Pinal Dave
SQL Performance
Primary Key, SQL Constraint and Keys, SQL Identity, SQL Scripts, SQL Server, SQL Server Management Studio, SQL Wait Stats, Testing

Today’s goal is to understand what is the Last Page Insert PAGELATCH_EX Contention Due to Primary Key. Let us start understanding it together.

Read More
Gouache painting of two pottery benches, one cluttered with kept clay scraps and one swept clean beside a vermilion bucket

Recovery Model Insert Test: FULL vs SIMPLE Under Load

May 4, 2020
Pinal Dave
SQL Performance
Best Practices, SQL Backup and Restore, SQL Log, SQL Wait Stats, Testing

A recovery model insert test compares FULL and SIMPLE under a load of 16 connections. The log written is almost the same in both, and the elapsed time depends more on the server than on the model. The real difference is when the log can be reused, and this post shows that step by step.

Read More
A hen leads its associated chicks out of a barn

How to Get Details of All Files Associated with Database from MDF? – Interview Question of the Week #275

May 3, 2020
Pinal Dave
SQL Interview Questions and Answers
SQL Log, SQL Scripts, SQL Server, SQL Server DBCC

Question: How to Get Details of All files Associated with Database from MDF? Let us learn about the DBCC command DBCC command dbcc checkprimaryfile.

Read More
Gouache painting of a line of small wooden carts waiting at a narrow hopper, the first one vermilion

Insert Workload Waits: WRITELOG and PAGELATCH_EX

May 2, 2020
Pinal Dave
SQL Performance
Best Practices, SQL Log, SQL Scripts, SQL Wait Stats, Testing

Insert workload waits come down to two names, WRITELOG and PAGELATCH_EX. This post runs 16 connections that insert one row at a time and reads their waits with a tested script. It explains what each wait means and where to look for a fix.

Read More
A hand sets a plate on its embroidered outline on a half-set table, a red jug in the center.

Writing Rerunnable Deployment Scripts for Database Changes

May 1, 2020
Pinal Dave
SQL Tips and Tricks
Best Practices, DevOps, SQL Scripts, SQL Server

Write rerunnable deployment scripts with guarded schema changes, version records, and a dry run on a restored database copy.

Read More
sqlcmd mode

SQL SERVER Management Studio and SQLCMD Mode

April 30, 2020
Pinal Dave
SQL Tips and Tricks
SQL Download, SQL Scripts, SQL Server, SQL Server Management Studio, sqlcmd, Testing

Honestly, there is an alternative way to quickly use SSMS SQLCMD mode as a development environment, let us learn about it today. 

Read More
Gouache painting of a wooden spoon with a vermilion handle beside a big cream stand mixer

sqlcmd vs SSMS: How to Time the Same Loop Fairly

April 29, 2020
Pinal Dave
SQL Performance
Command Line, SQL Scripts, SQL Server Management Studio, sqlcmd, Testing

A sqlcmd vs SSMS timing is fair only when both tools run the same file. The clock must sit inside the script. This post times 10,000 inserts three ways with a log table, shows what changed and what didn’t, and lists the settings to match before you compare.

Read More
Previous 1 … 112 113 114 115 116 117 118 … 844 Next
  • Books
  • Testimonials
  • Privacy Policy

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