June 2025 Discount: Comprehensive Database Performance Health Check | Testimonials

Home
  • Consulting
  • Training
  • Free Videos
  • All Articles
    • Interview Questions and Answers
    • SQL Tips and Tricks
    • SQL Performance
    • SQL Puzzle
    • Big Data
    • Blog Stats
    • SQL Books
    • Search SQLAuthority
  • Downloads
  • Hire Me
  • Health Check
contention

SQL SERVER – Resolving Last Page Insert PAGELATCH_EX Contention with OPTIMIZE_FOR_SEQUENTIAL_KEY

May 6, 2020
Pinal Dave
SQL Tips and Tricks
oStress, Primary Key, SQL Constraint and Keys, SQL Identity, SQL Scripts, SQL Server, SQL Server 2019, SQL Wait Stats, SSMS, Stress 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
Last Page Insert

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

May 5, 2020
Pinal Dave
SQL Performance
oStress, Primary Key, SQL Constraint and Keys, SQL Identity, SQL Scripts, SQL Server, SQL Wait Stats, SSMS, Stress 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
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

What is Trusted Constraint in SQL Server? – Interview Question of the Week #210

January 27, 2019
Pinal Dave
SQL Interview Questions and Answers
SQL Constraint and Keys, SQL Performance, SQL Scripts, SQL Server

Question: What is Trusted Constraint in SQL Server?

Read More

How to Create Primary Key Without ANY Index? – Interview Question of the Week #143

October 8, 2017
Pinal Dave
SQL Interview Questions and Answers
SQL Constraint and Keys, SQL Scripts, SQL Server

Question: How to Create Primary Key Without ANY Index?

Read More

SQL SERVER – How to Find UNIQUE Key Columns? – sp_special_columns

September 8, 2017
Pinal Dave
SQL Tips and Tricks
SQL Constraint and Keys, SQL Scripts, SQL Server, SQL Stored Procedure

Unique key on a column is used to identify a particular row easily. It is created either by explicitly mentioning it either part of the definition or when defined as Primary key (By default it is unique and not null). Let us learn about special stored procedure sp_special_columns customers today.

Read More

How to Allow Only Alphabets in Column? – Interview Question #136

August 20, 2017
Pinal Dave
SQL Interview Questions and Answers
SQL Constraint and Keys, SQL Function, SQL Scripts, SQL Server

Question: How to Allow Only Alphabets in Column? Answer: This was a real world scenario and I have mixed feeling about this kind of question.

Read More
Previous 1 2 3 4 5 … 14 Next
  • SQL Interview Q & A
  • Testimonials
  • Search
  • Privacy Policy

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

Go to mobile version