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 - 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
A leaf stencil taped to a plaster wall beside three identical painted sage leaves, a paint sponge on a saucer.

Templates and Snippets in SSMS

February 25, 2008
Pinal Dave
SQL Tips and Tricks
SQL Coding Standards, SQL Scripts, SQL Server Management Studio, SQL Shortcut

Templates and snippets in SSMS turn repeated SQL patterns into editable starting points while keeping environment assumptions visible.

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 - Pre-Code Review Tips - Tips For Enforcing Coding Standards

SQL SERVER – Pre-Code Review Tips – Tips For Enforcing Coding Standards

October 12, 2007
Pinal Dave
SQL Tips and Tricks
Database, DBA, SQL Coding Standards, SQL Scripts

Pre-code review tips for DBAs: why I check stored procedures on our development server every day for coding standards, with a link to my full article.

Read More
A ring of plain brass keys on a doormat, one key with a vermilion painted bow standing out from the rest.

Why You Should Name Default Constraints

October 7, 2007
Pinal Dave
SQL Tips and Tricks
Schema, SQL Coding Standards, SQL Constraint and Keys, SQL Server

Name default constraints so deployments can find them reliably, and replace system-generated names through a reviewed migration.

Read More
A tangled ball of twine beside the same twine wound neatly onto five spools

Refactoring a Long Stored Procedure Into Readable Steps

August 20, 2007
Pinal Dave
SQL Tips and Tricks
Best Practices, SQL Coding Standards, SQL Server, SQL Stored Procedure

Learn refactoring a long stored procedure with output baselines, named temp tables, dead-code removal, and two-way EXCEPT checks before release.

Read More
SQL SERVER - Recovery Models and Selection

SQL SERVER – Recovery Models and Selection

June 13, 2007
Pinal Dave
SQL Performance
SQL Backup and Restore, SQL Coding Standards, SQL Data Storage, SQL Scripts, SQL Server Security

SQL Server offers three recovery models: full, simple and bulk-logged. Here is when to select each one, based on how much data loss you can accept.

Read More
Previous 1 2 3 4 Next
  • Books
  • Testimonials
  • Privacy Policy

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