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
Gouache painting of five wooden spoons standing in a jar, the tallest with a reddish vermilion-stained bowl and handle

Reads and Writes per File: Rank Files by Bytes Moved

January 4, 2022
Pinal Dave
SQL Tips and Tricks
SQL Data Storage, SQL DMV, SQL Performance

Reads and writes per file show which data or log file SQL Server uses the most. This post ranks the files of a demo database by bytes moved with sys.dm_io_virtual_file_stats and explains what the tally can and cannot tell you.

Read More
Optimize DATE

Optimize DATE in WHERE Clause – SQL in Sixty Seconds #189

December 29, 2021
Pinal Dave
SQL Video
SQL DateTime, SQL in Sixty Seconds, SQL Performance

During Comprehensive Database Performance Health Check, I often get questions about how to Optimize DATE in the WHERE Clause.

Read More
Two street lamps on a cobbled square at night whose pools of light overlap in one brighter patch

Splitting OR Conditions Into UNION ALL for Index Seeks

December 27, 2021
Pinal Dave
SQL Performance
Execution Plan, SQL Index, SQL Server, SQL Union clause

Test splitting OR conditions into disjoint UNION ALL branches, preserve NULL behavior and row identity, and compare actual index access.

Read More
Hands lifting a colored pane from a salvaged window to fill the one gap in a stained glass window

Recovering One Dropped Table From a Full Backup

December 23, 2021
Pinal Dave
SQL Tips and Tricks
DBA, SQL Backup and Restore, SQL Table Operation

Recover one dropped table through a separate restored database, choose the recovery point, copy its data, and rebuild the table rules.

Read More
Compression for Performance

Data Compression for Performance – SQL in Sixty Seconds #188

December 16, 2021
Pinal Dave
SQL Video
Compression, SQL in Sixty Seconds, SQL Performance, SQL Server

Earlier I wrote a blog post about how Data Compression for Performance can help improve the efficiency of SQL Server.

Read More
Gouache painting of a big unrolled quilt beside a small tightly rolled one tied with a vermilion band

Estimate Compression Savings for Every Table in a Database

December 15, 2021
Pinal Dave
SQL Tips and Tricks
Compression, SQL Scripts, SQL Stored Procedure

To estimate compression savings for every table, loop over the database and call sp_estimate_data_compression_savings with ROW and PAGE. This post ranks tables by space saved and checks one estimate against a real rebuild.

Read More
A pair of white ice skates on a snowy bench with a loose coil of lace beside them

ZIP Codes Stored as int: Lost Zeros and How to Repair Them

December 10, 2021
Pinal Dave
SQL Tips and Tricks
Best Practices, SQL Server, SQL Stored Procedure

An int column turns 01234 into 1234 and never gives the zero back. Here is how to fix the column, and how to repair old rows without guessing.

Read More
Previous 1 … 46 47 48 49 50 51 52 … 843 Next
  • Books
  • Testimonials
  • Privacy Policy

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