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
Three wooden gauges with finite end stops and fitted measuring bars in a sunlit workshop.

Unsigned Integers: Safe Type and Range Mapping

July 12, 2010
Pinal Dave
SQL Tips and Tricks
SQL Constraint and Keys, SQL Datatype, SQL Migration, SQL Server

Map unsigned integers to SQL Server types without narrowing their range. Keep strict source-text validation separate from destination CHECK constraints.

Read More
A wooden mannequin hunts under sofa cushions while a small mannequin outside holds up the red car keys

SQL Error Riddles: Parent Keys Not Found and Other Classics

May 29, 2010
Pinal Dave
SQL Tips and Tricks
Primary Key, SQL Constraint and Keys, SQL Error Messages, SQL Humor

SQL error riddles have been passed around for years. Here are the classics, told kindly, with the real SQL Server error behind each punchline.

Read More
A hand searching a tin of jumbled buttons for a matching set, an empty compartment tray beside it.

Indexing Foreign Keys

May 19, 2010
Pinal Dave
SQL Performance
SQL Constraint and Keys, SQL Index, SQL Lock, SQL Server

Indexing foreign keys can speed joins and parent deletes when child-side indexes are missing; learn how to find gaps and test write tradeoffs.

Read More
A nested set of copper measuring cups on a hook, with one stray cup from a different set lying on the counter below.

Where Reference Data Should Live

May 7, 2010
Pinal Dave
SQL Tips and Tricks
Data Warehousing, Master Data Services, SQL Constraint and Keys, SQL Server

Reference data belongs in governed lookup tables with stable codes, clear owners, and a release process that keeps environments aligned.

Read More
SQL SERVER - Disable Clustered Index and Data Insert

SQL SERVER – Disable Clustered Index and Data Insert

April 29, 2010
Pinal Dave
SQL Tips and Tricks
SQL Constraint and Keys

A client’s DBA disabled every clustered index before a bulk insert, and the application stopped working. What happens when you disable clustered index?

Read More
SQL SERVER - GUID vs INT - Your Opinion

SQL SERVER – GUID vs INT – Your Opinion

April 28, 2010
Pinal Dave
SQL Performance
SQL Constraint and Keys, SQL Data Storage

GUID vs INT as a primary key or clustered index: I list one advantage and one disadvantage of each and ask you to add yours in the comments.

Read More
Rich still life with two differently sized glasses partly filled with sage liquid, an ivory pitcher and slate tray.

Storing Percentages: 0.15 or 15, and How to Tell Them Apart

April 27, 2010
Pinal Dave
SQL Tips and Tricks
SQL Coding Standards, SQL Constraint and Keys, SQL Datatype, SQL Server

Storing percentages starts with a declared unit. Fractional rates and percentage points require different conversions, even when both pass a range check. Use named columns, explicit boundaries and a guarded disposable fixture.

Read More
Previous 1 … 11 12 13 14 15 16 17 … 23 Next
  • Books
  • Testimonials
  • Privacy Policy

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