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
Does Dropping Primary Key Drop Non-Clustered Index on the Column? - Interview Question of the Week #085

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
How to Drop Clustered Index on Primary Key Column? - Interview Question of the Week #084

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
Does Dropping Clustered Index Drop Primary Key on the Same Column? - Interview Question of the Week #083

Does Dropping Clustered Index Drop Primary Key on the Same Column? – Interview Question of the Week #083

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

Does dropping clustered index also drop the primary key on the same column? Here is the short answer, a follow-up to last week’s question on the reverse case.

Read More
Does Dropping Primary Key Drop Clustered Index on the Same Column? - Interview Question of the Week #082

Does Dropping Primary Key Drop Clustered Index on the Same Column? – Interview Question of the Week #082

July 31, 2016
Pinal Dave
SQL Interview Questions and Answers
Clustered Index, SQL Constraint and Keys, SQL Index, SQL Server

When you drop a primary key, does it drop the clustered index on the same column too? Yes, it does. Here is a small script that shows it.

Read More
SQL error dialog.

Can We Have NULL Value in Primary Key? – Interview Question of the Week #075

June 12, 2016
Pinal Dave
SQL Interview Questions and Answers
SQL Constraint and Keys, SQL NULL, SQL Scripts, SQL Server

Can we have a NULL value in primary key columns? No. The primary key has to uniquely identify each row, and NULL cannot do that. Here is why.

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

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