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 garden trellis with vines tied on with twine, and one vine leaning against it without any tie

Drawing a Diagram of an Existing Database

April 24, 2008
Pinal Dave
SQL Tips and Tricks
SQL Constraint and Keys, SQL Documentation, SQL Server, SQL Server Management Studio

A diagram of an existing database starts with real foreign keys, uses SSMS to reveal relationships, and records the important paths a picture misses.

Read More
SQL SERVER - Generate Foreign Key Scripts For Database

SQL SERVER – Generate Foreign Key Scripts For Database

April 18, 2008
Pinal Dave
SQL Tips and Tricks
SQL Constraint and Keys

Madhaiyan Seenivasan’s stored procedure lets you generate foreign key scripts for a whole database, handy when you drop all foreign keys and add them back.

Read More
SQL SERVER - Add Column With Default Column Constraint to Table

SQL SERVER – Add Column With Default Column Constraint to Table

March 19, 2008
Pinal Dave
SQL Tips and Tricks
SQL Coding Standards, SQL Constraint and Keys, SQL Scripts, SQL Server

Add a NOT NULL column with a named default Column Constraint in one ALTER TABLE statement. I always name constraints instead of letting SQL Server pick one.

Read More
Two overlapping wooden rails share a fitted bridge on a richly painted workshop bench

Salary Ranges: Match Overlapping Intervals in SQL Server

February 1, 2008
Pinal Dave
SQL Tips and Tricks
SQL Constraint and Keys, SQL Joins, SQL NULL, SQL Server

Match salary ranges using both boundaries of the job and candidate intervals. Define open bounds and test containment, endpoint contact and invalid input.

Read More
A soil sieve over a wheelbarrow, fine soil fallen through while stones and roots stay caught on the mesh.

Check Constraints That Enforce Business Rules

December 24, 2007
Pinal Dave
SQL Tips and Tricks
Best Practices, SQL Constraint and Keys, SQL NULL, SQL Server

Check constraints keep row rules inside SQL Server, but NULL behavior and trusted status determine how much protection they provide.

Read More
A gouache greenhouse station combines removable seed trays with a fixed supporting frame and a red retaining latch.

SQL SERVER – TempDB Restrictions – Temp Database Restrictions

December 15, 2007
Pinal Dave
SQL Interview Questions and Answers
SQL Constraint and Keys, SQL Server, SQL TempDB

TempDB Restrictions follow from how SQL Server recreates and uses this system database. I check them before applying user-database maintenance habits.

Read More
SQL SERVER - Three T-SQL Script to Create Primary Keys on Table

SQL SERVER – Three T-SQL Script to Create Primary Keys on Table

October 16, 2007
Pinal Dave
SQL Tips and Tricks
SQL Constraint and Keys, SQL Scripts

Three T-SQL scripts to create primary keys: two while creating the table and one with ALTER TABLE later, where the column must first be NOT NULL.

Read More
Previous 1 … 17 18 19 20 21 22 23 Next
  • Books
  • Testimonials
  • Privacy Policy

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