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
A to Z alphabet smiley faces.

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
SQL Server 2012 Setup.

SQL SERVER – FIX: Rule “Reporting Services Catalog Database File Existence” Failed

July 5, 2017
Pinal Dave
SQL Tips and Tricks
SQL Constraint and Keys, SQL Error Messages, SQL Server, Starting SQL

After a disaster, a client’s SQL Server setup failed the rule Reporting Services catalog database file existence. Here is why and how I got the install through.

Read More
Rain boots with an attached strap beside boots without a strap

Nullable Foreign Keys: Optional Relationships and Outer Joins

January 2, 2017
Pinal Dave
SQL Tips and Tricks
SQL Constraint and Keys, SQL Joins, SQL Server

A nullable foreign key lets a row say no relationship yet. I show what the constraint checks, why an inner join drops those rows, and where WHERE bites.

Read More
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
Gouache painting of a cracked ceramic bowl on a wooden shelf with a thin crack running from rim to base

Duplicate Entry for Key PRIMARY in wp_options: Fix With REPAIR TABLE

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

A duplicate entry for key PRIMARY on INSERT INTO wp_options made my blog slow and stopped scheduled posts. After four hours of trial and error, REPAIR TABLE wp_options fixed the corrupted table. Here is the log line, the command and a script that repairs every table.

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
Previous 1 2 3 4 5 6 7 8 … 25 Next
  • Books
  • Testimonials
  • Privacy Policy

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