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
Identity Constraint

SQL SERVER – Identity and Constraint Confusion

October 24, 2020
Pinal Dave
SQL Tips and Tricks
SQL Constraint and Keys, SQL Identity, SQL Scripts, SQL Server

What is going on with their server as I had no access to their data or schema. Let us learn about how identity and constraint confusion created problems.

Read More
nonclustered primary

Nonclustered Primary Key – SQL in Sixty Seconds #119

September 7, 2020
Pinal Dave
SQL Video
Primary Key, SQL Constraint and Keys, SQL in Sixty Seconds, SQL Index, SQL Scripts, SQL Server

I will describe in detail a bit later on during this blog post. Today we are going to learn that it is possible to have a nonclustered primary key. 

Read More
non-clustered-primary-key0

SQL SERVER – Resolving Last Page Insert PAGELATCH_EX Contention Changing Primary Key to Non-Clustered

May 11, 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

You can change your clustered primary key to Non-clustered Primary Key and can get the benefit of performance by reducing Pagelatch_EX.

Read More
contention

SQL SERVER – Resolving Last Page Insert PAGELATCH_EX Contention with OPTIMIZE_FOR_SEQUENTIAL_KEY

May 6, 2020
Pinal Dave
SQL Tips and Tricks
Primary Key, SQL Constraint and Keys, SQL Identity, SQL Scripts, SQL Server, SQL Server 2019, SQL Server Management Studio, SQL Wait Stats, Testing

I have personally implemented the solution suggested of resolving contention about creating an index with OPTIMIZE_FOR_SEQUENTIAL_KEY at my client’s place.

Read More
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
A hand holding a tulip bulb, paused above a spot where a shoot already grows in a garden bed.

Loading Only New Rows: INSERT SELECT With NOT EXISTS

December 25, 2019
Pinal Dave
SQL Tips and Tricks
Duplicate Records, SQL Constraint and Keys, SQL Scripts, SQL Server

Make loading only new rows repeatable with NOT EXISTS, EXCEPT, source deduplication, and a unique key that protects the destination.

Read More
sp_pkeys

SQL SERVER – Show Primary Key for a Single Table – sp_pkeys

August 14, 2019
Pinal Dave
SQL Tips and Tricks
SQL Constraint and Keys, SQL Stored Procedure, System Object

Recently, one of my clients showed me a very cool trick to check Primary Key for a single table with the help of the system stored procedure sp_pkeys.

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

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