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 brass umbrella stand of identical cream umbrellas, one marked only by a small red tassel.

The sp_ Prefix: Finding Stored Procedures Named the Risky Way

January 11, 2018
Pinal Dave
SQL Tips and Tricks
Best Practices, SQL Coding Standards, SQL Server, SQL Stored Procedure

Find user procedures with the sp_ prefix across databases, understand the lookup risk, and move callers through a synonym safely.

Read More
A slipcover that stops short on a lengthened sofa, the new red seat left bare

Stale Views: Why SELECT * Breaks After ALTER TABLE

September 5, 2014
Pinal Dave
SQL Tips and Tricks
Schema, SQL Coding Standards, SQL Server, SQL View

Reproduce stale views after SELECT star and ALTER TABLE, find candidate definitions, refresh with sp_refreshview, and prevent the pattern.

Read More
A cat with a red collar passes through a cat flap while a stray waits outside.

Enforcing Object Naming Rules With a DDL Trigger

June 8, 2013
Pinal Dave
SQL Tips and Tricks
SQL Coding Standards, SQL Server, SQL Trigger

Enforce procedure and index names with a DDL trigger, inspect EVENTDATA, audit rejected attempts, and list existing violations.

Read More
A half-built brick wall with even mortar joints, a taut string line along the top and a trowel on the last brick.

Formatting T-SQL Consistently Across a Team

February 14, 2013
Pinal Dave
SQL Tips and Tricks
Best Practices, Software Development, SQL Coding Standards, SQL Server

Formatting T-SQL consistently means choosing a few readable rules, using a formatter carefully, and keeping historical changes focused.

Read More
A jigsaw puzzle with pieces sorted into groups before being fitted together

Common Table Expressions for Readability

April 20, 2011
Pinal Dave
SQL Tips and Tricks
CTE, SQL Coding Standards, SQL Server, Temp Table

Common table expressions for readability name query steps and support recursion, but they do not promise cached intermediate results.

Read More
An old wooden window frame on sawhorses, half restored and primed, its original glass panes kept in place.

Replacing Old Syntax in Legacy T-SQL

March 7, 2010
Pinal Dave
SQL Tips and Tricks
SQL Coding Standards, SQL Datatype, SQL Deprecated Feature, SQL Joins

Modernize legacy T-SQL by replacing old joins, TEXT columns, and fragile RAISERROR forms with clear, tested alternatives.

Read More
Stored Procedure Optimization Tips.

SQL SERVER – Stored Procedure Optimization Tips – Best Practices

February 16, 2010
Pinal Dave
SQL Performance
Best Practices, SQL Coding Standards, SQL Scripts, SQL Server, SQL Stored Procedure

We will go over how to optimize Stored Procedure with making simple changes in the code. Please note there are many more other tips, which we will cover in future articles.

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

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