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 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
Gouache painting: three identical white saucers on a counter each hold a small white mound that looks the same from a distance

SQL_VARIANT_PROPERTY: Inspect the Base Type

October 1, 2011
Pinal Dave
SQL Tips and Tricks
SQL Datatype, SQL Function, SQL Scripts

SQL_VARIANT_PROPERTY exposes a variant’s BaseType. Compare numeric, date, string and binary inputs with their stored base types intact.

Read More
Execution_count result.

SQL SERVER – Denali – DMV Enhancement – sys.dm_exec_query_stats – New Columns

September 28, 2011
Pinal Dave
SQL Tips and Tricks
SQL DMV, SQL Scripts

SQL Server Denali adds four new columns to sys.dm_exec_query_stats, like total_rows and last_rows, so you can see how many rows your queries returned.

Read More
A broad rug beater beside a hanging rug and a much smaller soft brush

Stop Chasing Every Seek: When a Table Scan Is the Right Plan

September 28, 2011
Pinal Dave
SQL Tips and Tricks
SQL Performance, SQL Scripts, SQL Server

A Clustered Index Scan is not always the problem. Count the reads for a seek with lookups, a scan and the optimizer’s own pick, then see when the seek really wins.

Read More
Previous 1 … 217 218 219 220 221 222 223 … 363 Next
  • Books
  • Testimonials
  • Privacy Policy

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