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
Several boats connect to one mooring point while a separate line leads outward

How Many Foreign Key Can You Have on A Single Table? – Interview Question of the Week #096

November 6, 2016
Pinal Dave
SQL Interview Questions and Answers
SQL Constraint and Keys, SQL Documentation, SQL Server

How many foreign key references can you have on a single table? I said 253 at SQLPASS, but my answer was not complete. Here is the full answer.

Read More
Title card: WordPress Error: Duplicate Entry for Key PRIMARY

MySQL – Fix Error – WordPress Database Error Duplicate Entry for key PRIMARY for Query INSERT INTO wp_options

September 12, 2016
Pinal Dave
SQL Tips and Tricks
MySQL, SQL Constraint and Keys, SQL Error Messages, WordPress

My blog was slow and scheduled posts failed. The cause was a Wordpress Database Error: duplicate entry for key PRIMARY in wp_options. Here is how I fixed it.

Read More
Tent pegs and slack guy ropes in a flattened patch of grass where a tent used to be

Finding Orphaned Child Rows Before Adding a Foreign Key

September 1, 2016
Pinal Dave
SQL Tips and Tricks
Database, SQL Constraint and Keys, SQL Scripts, SQL Server

Find orphaned child rows before adding a foreign key, review their business meaning, validate relationships, and confirm constraint trust.

Read More
A brass latch and its mounting plate removed while an independent steel rail stays on the cabinet

Does Dropping Primary Key Drop Non-Clustered Index on the Column? – Interview Question of the Week #085

August 21, 2016
Pinal Dave
SQL Interview Questions and Answers
Clustered Index, SQL Constraint and Keys, SQL Index, SQL Server

Does dropping a primary key also drop the Non-Clustered Index on that column? An interview question with a small repro script to see the answer.

Read More
Database Sharding – How to Identify a Shard Key?

Database Sharding – How to Identify a Shard Key?

August 17, 2016
Pinal Dave
SQL Tips and Tricks
SQL Constraint and Keys, SQL Server, SQL Server Architecture

Picking the shard key is the hardest part of Database Sharding. Here are the guiding principles I shared at a user group for choosing a good one.

Read More
A wooden box with a sliding lid beside its former hinged lid and brass hinges

How to Drop Clustered Index on Primary Key Column? – Interview Question of the Week #084

August 14, 2016
Pinal Dave
SQL Interview Questions and Answers
Clustered Index, SQL Constraint and Keys, SQL Server

DROP INDEX fails with Msg 3723 on a primary key. Here is how to drop clustered index on a primary key column the right way, through the constraint.

Read More
SQL SERVER - Installation Fails With Error - A Constraint Violation Occurred

SQL SERVER – Installation Fails With Error – A Constraint Violation Occurred

August 13, 2016
Pinal Dave
SQL Tips and Tricks
SQL Constraint and Keys, SQL Error Messages, SQL Server

SQL Server cluster Installation Fails with ‘A constraint violation occurred’ as the network name won’t come online. I’ve fixed it for 10 clients.

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

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