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 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
A folded route card on a desk showing three numbered stages joined by arrows

How to Read a SQL Server Execution Plan

October 3, 2011
Pinal Dave
SQL Performance
Best Practices, SQL Index, SQL Performance, SQL Server

An execution plan is SQL Server showing its working. Read it inside out, learn the six operators you actually meet, ignore the cost percentages, and compare estimated rows with actual rows instead.

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
Sys.dm_os_windows_info.

SQL SERVER – Denali – DMV – sys.dm_os_windows_info – Information about Operating System

September 30, 2011
Pinal Dave
SQL Tips and Tricks
SQL DMV

A quick look at sys.dm_os_windows_info, the new Denali DMV that returns information about the Windows operating system, with an example query.

Read More
Table with database information.

SQL SERVER – Denali – DMV – sys.dm_os_volume_stats – Information about operating system volume

September 30, 2011
Pinal Dave
SQL Tips and Tricks
SQL DMV

The new Denali DMV sys.dm_os_volume_stats shows the operating system volume where each database file is stored, with its total and available space.

Read More
A line of footprints in fresh snow crossing a courtyard to a closed door, with no one in sight.

Reading the Transaction Log With fn_dblog

September 29, 2011
Pinal Dave
SQL Tips and Tricks
SQL Audit, SQL Backup and Restore, SQL Server, Transaction Log, Undocumented SQL

fn_dblog can expose transaction-log records during a narrow investigation, but retention and missing user context make it a last resort.

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
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
Previous 1 … 401 402 403 404 405 406 407 … 593 Next
  • Books
  • Testimonials
  • Privacy Policy

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