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 sailboat in a calm harbor flying a long line of signal flags from its mast

Naming Conventions for Tables, Columns and Constraints

March 1, 2012
Pinal Dave
SQL Tips and Tricks
Best Practices, SQL Coding Standards, SQL Constraint and Keys, SQL Server

Use naming conventions for readable SQL Server tables, columns, keys and indexes, then find exceptions and plan safe renames with sp_rename.

Read More
A white picket fence around a neat vegetable bed with a red gate latch and one tall sunflower standing out of line inside.

Create Constraints Quiz: What Does WITH NOCHECK Leave Behind?

January 18, 2012
Pinal Dave
SQL Puzzle
Primary Key, SQL Column, SQL Constraint and Keys, SQL Table Operation

This Create Constraints Quiz adds a CHECK constraint WITH NOCHECK to a table that already holds a bad row. The bad row stays, and the constraint is marked not trusted. A tested script proves it, shows what trust changes for the optimizer and lists four ways to create a constraint.

Read More
A metal sieve over a mixing bowl, flour passing through while a few lumps and a small pebble stay in the mesh.

Data Quality Rules in T-SQL

January 11, 2012
Pinal Dave
SQL Tips and Tricks
Data Observability, ETL, SQL Constraint and Keys, SQL Server

Data quality rules in T-SQL turn nulls, duplicates, invalid dates, and broken references into visible failures before rows reach reports.

Read More
A long wooden peg board with a row of round pegs and one empty hole in the row, a red peg standing just past the gap.

Identity Column Quiz: Why Did My IDs Skip a Number?

January 4, 2012
Pinal Dave
SQL Puzzle
SQL Constraint and Keys, SQL Identity, SQL Table Operation, SQL Transactions

This Identity Column Quiz starts with three rows and one rolled-back insert, then asks what ID the next row gets. The answer is 5, not 4. A tested script proves it and shows two more ways numbers go missing.

Read More
A dog with a plain brass tag on its collar sitting beside a pile of older collars in different colors and sizes.

Surrogate Keys and Natural Keys

September 18, 2011
Pinal Dave
SQL Tips and Tricks
Business Intelligence, Data Warehousing, Primary Key, SQL Constraint and Keys, SQL Server

Surrogate keys keep warehouse history stable while natural keys preserve source identity; learn lookup, uniqueness, and change handling.

Read More
Interview

Interview Questions and Answers – Frequently Asked Questions Day 6 of 31

July 6, 2011
Pinal Dave
SQL Interview Questions and Answers
SQL Constraint and Keys, SQL Index, SQL Server

Frequently Asked Questions Day 6: which TCP/IP port SQL Server runs on and how to change it, and the difference between a clustered and a non-clustered index.

Read More
A tray of cookies in rows with a few missing, fallen to the floor

SEQUENCE Cache Size, Gaps and Insert Throughput

June 9, 2011
Pinal Dave
SQL Tips and Tricks
SQL Cache, SQL Constraint and Keys, SQL Identity, SQL Server

Compare SEQUENCE cache size, restart gaps, rollback gaps, and insert throughput with CACHE 50, CACHE 1000, and NO CACHE.

Read More
Previous 1 … 9 10 11 12 13 14 15 … 24 Next
  • Books
  • Testimonials
  • Privacy Policy

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