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
An old coal scuttle still holding fuel beside a newer container

Retired Features Still in Your Schema: Stretch, text and More

March 18, 2019
Pinal Dave
SQL Tips and Tricks
Best Practices, Schema, SQL Server

Before an upgrade, look for text and image columns, old rules and defaults, and Stretch metadata. These queries show what is there.

Read More
Four small wooden blocks sit around one larger central block on an oak tabletop.

Watching Many Servers Without Buying Anything

March 14, 2019
Pinal Dave
SQL Performance
Best Practices, Database, SQL Scripts, SQL Server

Use scheduled snapshots to monitor SQL Server with central storage, failure reporting, and four focused queries collected every five minutes.

Read More
Gouache painting of an old stump with many growth rings beside a young sapling tied with a vermilion ribbon.

Build Your Own SQL Script Library

November 1, 2018
Pinal Dave
SQL Tips and Tricks
Best Practices, DBA, SQL Coding Standards, SQL Scripts

A SQL script library saves you from solving the same problem twice. This post shows a folder layout by task, a header block with the tested version, naming habits, a safe history, tests on a scratch server and a way to retire old scripts, with one small read-only script as an example.

Read More
A plaster hawk beside one freshly plastered wall patch and one unchanged patch

Comparing Old and New Values in a Trigger With inserted and deleted

October 10, 2018
Pinal Dave
SQL Tips and Tricks
Best Practices, SQL Server, SQL Trigger

Build a small audit trigger that joins inserted and deleted, handles NULL changes correctly and ignores saves that change nothing.

Read More
A person seen from behind in the doorway of an old boathouse, oars and a covered boat inside, a closed red toolbox nearby

First Queries to Run on an Unfamiliar SQL Server

October 2, 2018
Pinal Dave
SQL Tips and Tricks
Best Practices, SQL Performance, SQL Server

Inspect an unfamiliar SQL Server with read-only queries for version, uptime, database size, waits, backup history, and settings.

Read More
A fitted drill chuck and bit with the hand drill drive disengaged

Checking Optional Features Installed on an Instance From T-SQL

September 29, 2018
Pinal Dave
SQL Tips and Tricks
Best Practices, SQL Performance, SQL Server

A 1 in SERVERPROPERTY does not mean the feature runs. Here is how I line up the flag, the setting and the service in one query.

Read More
Heavy and light tool aprons supported by suspenders with visibly different loads

Wide Covering Indexes: The Cost of INCLUDE Everything

September 7, 2018
Pinal Dave
SQL Performance
Best Practices, SQL Performance, SQL Server

Adding every column with INCLUDE feels like a free speed-up. Here is a small demo of the space, reads and writes you pay for.

Read More
Previous 1 … 5 6 7 8 9 10 11 … 54 Next
  • Books
  • Testimonials
  • Privacy Policy

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