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 violin mute, bridge, and string fragments preserved together on soft cloth

Checking for SQL Server Dump Files After a Crash

October 12, 2011
Pinal Dave
SQL Tips and Tricks
Database, SQL Scripts, SQL Server

Did the server really crash, or just restart? Here is how to list dump files, read the error log and protect the evidence before anyone cleans up.

Read More
A small wooden gate fitted securely between two plain wooden blocks on a warm tabletop.

Where a Business Rule Should Actually Live

October 11, 2011
Pinal Dave
SQL Tips and Tricks
Best Practices, Data Warehousing, Database, ETL

Place the business rules database applications depend on in constraints, procedures, triggers, or application code according to their guarantees.

Read More
A firmly planted bicycle kickstand supports a bicycle on level stone

Blocking DELETE Without a WHERE Clause Using a Trigger

October 8, 2011
Pinal Dave
SQL Tips and Tricks
Database, SQL Scripts, SQL Server

A trigger cannot read your statement, but it can count the rows that vanish. Here is a guard that stops a runaway delete, and where it falls short.

Read More
A long sock on a wooden stretcher, with its small toe section drawn forward

A Page of Rows and the Grand Total Count in One Query

October 7, 2011
Pinal Dave
SQL Tips and Tricks
Database, SQL Scripts, SQL Server

One query can give a grid its ten rows and the total for the label. Here is how, plus the empty page trap that catches almost everyone.

Read More
A stack of plain translucent paper sheets beside one fresh blank sheet on a wooden table.

Temporal Tables: Keeping History Without a Trigger

October 5, 2011
Pinal Dave
SQL Tips and Tricks
Best Practices, Database, SQL Scripts, SQL Server

Use temporal tables to retain earlier row versions, query a past state, and plan history storage without confusing version history with user auditing.

Read More
One bias tape maker supplies two sewing projects, with an unused cut section left aside

A Shared SEQUENCE for Invoices and Credit Notes in One Range

September 27, 2011
Pinal Dave
SQL Tips and Tricks
Database, SQL Scripts, SQL Server

One sequence, two tables, and an auditor asking about number 8. See where gaps come from, how duplicates sneak in, and where uniqueness should live.

Read More
A plain removable wooden tray fits inside a larger open storage box on a table.

Running SQL Server in a Container for Testing

September 24, 2011
Pinal Dave
SQL Tips and Tricks
Best Practices, Database, SQL Server, SQL Server Installation

Create a SQL Server container for testing from Windows PowerShell, keep data in a named volume, and separate disposable runtime from backups.

Read More
Previous 1 … 22 23 24 25 26 27 28 … 52 Next
  • Books
  • Testimonials
  • Privacy Policy

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