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
Two sealed envelopes on a tray illustrate why verification matters

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

What is a trusted constraint in SQL Server? Many experts do not know, so instead of a definition I explain it with a simple check constraint example.

Read More
Gouache painting of a vermilion cart carrying three small stacked wooden tables

Drop Multiple Tables with One DROP TABLE Statement

October 23, 2018
Pinal Dave
SQL Tips and Tricks
SQL Constraint and Keys, SQL Scripts, SQL Table Operation

To drop multiple tables in SQL Server, list them in one DROP TABLE statement, referencing tables first. This post tests the order rule on a parent and child table and shows what happens after an error. It also covers IF EXISTS, drops by name pattern and temporary tables.

Read More
Two primary keys are each attached to a different physical index structure

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? SQL Server builds a clustered or nonclustered index for every primary key, so here is the answer.

Read More
Execution Plan of SQL Query.

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

Want to know which columns uniquely identify a row in a table? The system stored procedure sp_special_columns tells you. Here is a quick demo.

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

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