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
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
A hearth ash rake beside settled ashes from an earlier fire

tempdb-Heavy Queries: Finding Them in Query Store

December 8, 2021
Pinal Dave
SQL Performance
Query Store, SQL Server, SQL TempDB

The tempdb spike is over before you log in. Query Store remembers who caused it, and here is how to ask.

Read More
Gouache painting: three stands at a dairy loading dock

Scalar Subqueries: An Empty Input Produces NULL

December 6, 2021
Pinal Dave
SQL Tips and Tricks
Best Practices, SQL Scripts, SQL Server

Scalar subqueries contribute one value to an outer row. Keep row absence separate from a present NULL and enforce the at-most-one-row contract.

Read More
Gouache painting of a lemonade stand with a ready vermilion pitcher beside untouched lemons and a squeezer

Cached Plan Reuse: How to Tell if a Query Used a Cached Plan

December 2, 2021
Pinal Dave
SQL Tips and Tricks
Execution Plan, SQL Cache, SQL Scripts

Cached plan reuse is invisible in a result set. This post shows three checks on SQL Server: the compiled and runtime parameter values in the plan, the usecounts column of the plan cache, and the plan creation time.

Read More
Gouache painting of a courtyard wall with three open blue-grey doors, each with a small vermilion key in its lock

Login Database Access: List the Databases a Login Can Open

November 26, 2021
Pinal Dave
SQL Tips and Tricks
SQL Login, SQL Scripts, SQL Server Security

Check login database access by matching the login SID against the users of every online database. One query shows the user, the CONNECT state and the guest back door, and it needs no impersonation.

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

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