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
What is NOT NULL Constraint? - Interview Question of the Week #073

What is NOT NULL Constraint? – Interview Question of the Week #073

May 29, 2016
Pinal Dave
SQL Interview Questions and Answers
SQL Constraint and Keys, SQL NULL, SQL Scripts, SQL Server

A client table full of NULL values was hurting query plans. Here is what a NOT NULL constraint is, how to add one and why it helped performance.

Read More
Primary Key

Primary Key and Null in SQL Server – Interview Question of the Week #071

May 15, 2016
Pinal Dave
SQL Interview Questions and Answers
SQL Constraint and Keys, SQL Scripts, SQL Server

Can a primary key contain NULL values? No. Here is why primary key and NULL do not mix, and the simple interview question many candidates miss.

Read More
Table type descriptor window.

SQL SERVER – Identify Table Where Clustered Index is Not a Primary Key – DMV

April 26, 2016
Pinal Dave
SQL Performance
SQL Constraint and Keys, SQL Index, SQL Scripts, SQL Server

Let us first see script which will return us tablename with schema where clustered index is not a primary key.

Read More
Interview Question of the Week #062 - How to Find Table Without Clustered Index (Heap)?

Interview Question of the Week #062 – How to Find Table Without Clustered Index (Heap)?

March 13, 2016
Pinal Dave
SQL Interview Questions and Answers
Clustered Index, SQL Constraint and Keys, SQL Scripts, SQL Server

Not every table has a clustered index. Here is a quick script to find each table without a clustered index, also called a Heap, in your database.

Read More
SQL SERVER - View Dependencies on SQL Server: Hard & Soft Way

SQL SERVER – View Dependencies on SQL Server: Hard & Soft Way

February 16, 2016
Pinal Dave
SQL Tips and Tricks
Devart, SQL Constraint and Keys, SQL Scripts, SQL Server, SQL Utility

Most databases I meet as a consultant have no up-to-date documentation. Here is the hard way and the soft way to check SQL SERVER – View Dependencies yourself.

Read More
SQL SERVER - Finding Tables with Primary or Foreign Keys

SQL SERVER – Finding Tables with Primary or Foreign Keys

April 29, 2015
Pinal Dave
SQL Tips and Tricks
SQL Constraint and Keys, SQL Scripts

How do you find which tables have a primary key or foreign key? Here are simple queries for finding tables with primary or foreign keys in a database.

Read More
Foreign key relationships window.

Interview Question of the Week #001 – Script to List Foreign Key Relationships and Constraint Name

January 4, 2015
Pinal Dave
SQL Interview Questions and Answers
SQL Constraint and Keys

Interview question: write a script to list Foreign Key Relationships in a database along with each constraint name. Here is my short answer.

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

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