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
Workshop pegboard with neatly arranged tools, standards that keep work organized

SQL SERVER – Database Coding Standards and Guidelines Part 2

June 5, 2007
Pinal Dave
SQL Interview Questions and Answers
Database, DBA, Software Development, SQL Coding Standards, SQL Download, SQL Scripts, SQL Server

Database Coding Standards and Guidelines Part 2: skip SELECT *, use SET NOCOUNT ON, prefer CTEs over temp tables, avoid cursors, and more query tips.

Read More
Workshop pegboard with neatly arranged tools, standards that keep work organized

SQL SERVER – Database Coding Standards and Guidelines Part 1

June 4, 2007
Pinal Dave
SQL Tips and Tricks
Database, DBA, Software Development, SQL Coding Standards, SQL Download, SQL Scripts, SQL Server

Database Coding Standards and Guidelines Part 1: naming rules for tables, stored procedures, triggers, indexes, primary keys and foreign keys.

Read More
A pale-stone path border is accompanied by a separate slate, two bricks and a shell in a sunlit courtyard

Coding Standards: A Short Guide and a Practical Naming Check

June 3, 2007
Pinal Dave
SQL Tips and Tricks
Developer, SQL Coding Standards, SQL Scripts

Useful SQL coding standards give teams a short rule set with clear exceptions. Run a read-only naming report, check literal underscores in procedure prefixes and review the results before changing objects.

Read More
Gouache painting: on a sunny potting bench a blue glazed flower pot sits in its blue saucer and a sage pot in its sage saucer, both pairs matched and set side by side

Composite Keys: Match Complete Pairs Instead of Separate Lists

May 23, 2007
Pinal Dave
SQL Tips and Tricks
SQL Coding Standards, SQL Joins, SQL Scripts, SQL Server

Composite keys need a complete pair match when the allowed values are defined together. I don’t split the components into independent lists. Doing so can admit combinations that were never allowed.

Read More
Two brass funnels resting in slate and ivory ceramic vessels.

IIF and CASE: Control Return Types and Use Typed NULL Values

April 23, 2007
Pinal Dave
SQL Tips and Tricks
SQL Coding Standards, SQL Function, SQL Scripts, SQL Server

IIF and CASE choose result values, but their branches also define a shared return type. I make that type explicit when mixed inputs could surprise the reader. Typed NULL values help describe the same output contract.

Read More
SQL SERVER - Primary Key Constraints and Unique Key Constraints

SQL SERVER – Primary Key Constraints and Unique Key Constraints

February 5, 2007
Pinal Dave
SQL Performance
Database, Software Development, SQL Coding Standards, SQL Constraint and Keys, SQL Download, SQL Error Messages, SQL Index, SQL Joins, SQL Scripts, SQL Server Security

Primary Key and Unique Key both enforce uniqueness, but they differ in the index they create and in NULL handling. Here are the differences and the scripts.

Read More
Previous 1 … 3 4 5 6
  • Books
  • Testimonials
  • Privacy Policy

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