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
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
SQL SERVER - Sharpen Your Basic SQL Server Skills - Learn the distinctions between unique constraint and primary key constraint and the easiest way to get random rows from a table

SQL SERVER – Sharpen Your Basic SQL Server Skills – Learn the distinctions between unique constraint and primary key constraint and the easiest way to get random rows from a table

March 3, 2008
Pinal Dave
SQL Tips and Tricks
Database, DBA, SQL Constraint and Keys

My March 2007 SQL Server Magazine article explains the distinctions between unique constraint and primary key constraint, and an easy way to get random rows.

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
Tempdb database icon.

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

What are the TempDB restrictions? A candidate in my interview could not answer. Here is the list, from adding filegroups to backup, restore and more.

Read More
SQLAuthority News - Best Articles on SQLAuthority.com

SQLAuthority News – Best Articles on SQLAuthority.com

November 4, 2007
Pinal Dave
SQL Interview Questions and Answers
Data Warehousing, Database, DBA, Software Development, SQL Backup and Restore, SQL Coding Standards, SQL Constraint and Keys, SQL Cursor, SQL DateTime, SQL Download, SQL Error Messages, SQL Function, SQL Humor, SQL Index, SQL Joins, SQL Scripts, SQL Server DBCC, SQL Server Security, SQL Stored Procedure, SQL Trigger, SQL Utility

A list of my best articles so far, from killing all processes in a database and shrinking the log file to deleting duplicate rows and UNION vs UNION ALL.

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 … 12 13 14 15 16 17 18 Next
  • Books
  • Testimonials
  • Privacy Policy

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