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 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
SQL SERVER - Detecting Database Case Sensitive Property using fn_helpcollations()

SQL SERVER – Detecting Database Case Sensitive Property using fn_helpcollations()

October 6, 2011
Pinal Dave
SQL Tips and Tricks
SQL Collation, SQL DMV, SQL Function, SQL Scripts, SQL Server

Is your database Case Sensitive? Find its collation, then look it up in fn_helpcollations() and read the description. A quick answer from my Office Hours.

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
SQL SERVER - Quick Note about JOIN - Common Questions and Simple Answers

SQL SERVER – Quick Note about JOIN – Common Questions and Simple Answers

October 4, 2011
Pinal Dave
SQL Tips and Tricks
SQL Joins, SQL Scripts

A quick note about JOIN for T-SQL Tuesday: common questions I get in my office hours, answered simply, like which join method is better.

Read More
A bootjack beside a compact leather boot and another expanded by a thick wool sock

Growing varchar Updates: How Longer Values Split Pages

October 4, 2011
Pinal Dave
SQL Tips and Tricks
SQL Performance, SQL Scripts, SQL Server

A varchar column costs almost nothing while it is empty and a lot once people fill it in. Here is the page count before and after, and what a rebuild recovers.

Read More
Gouache painting: three glass jars with lids on a pantry shelf and two loose red lids lying beside them

FULL JOIN: Preserve Unmatched Rows on Both Sides

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

FULL JOIN preserves both source sides. Keep identifiers visible while reviewing ordinary equality, unmatched rows and later filters.

Read More
Previous 1 … 219 220 221 222 223 224 225 … 366 Next
  • Books
  • Testimonials
  • Privacy Policy

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