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 lemon squeezer holding a small lemon half beside an oversized half that cannot fit its pressing cup

Will the Next Autogrowth Fit? Checking Growth Against Free Disk

February 9, 2022
Pinal Dave
SQL Tips and Tricks
Best Practices, Disk, SQL Server

The drive has free space, yet the file will not grow. Here is how to calculate the next autogrowth and test it against disk and MAXSIZE.

Read More
A mechanism delivers shaped components into a matching tray for separate assembly work.

SQL SERVER – Capturing Stored Procedure Results with a Matching INSERT EXEC Table

February 8, 2022
Pinal Dave
SQL Tips and Tricks
Ad Hoc Query, SQL Server, SQL Stored Procedure

A stored procedure is not normally a table expression in a SELECT Statement. The question concerned rows from uspGetManagerEmployees.

Read More
Gouache painting of a dirt trail beside a stream crossed by a short plank bridge, with a vermilion stone marker in the foreground

TempDB Operating System Error 3: Fix a Wrong TempDB Path

January 27, 2022
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Server, SQL TempDB

TempDB operating system error 3 means a tempdb file path cannot be found, for example after a typo in a move. This post reproduces the error safely, shows how error 3 differs from error 2 and lists the repair steps when the service will not start.

Read More
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
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
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 … 19 20 21 22 23 24 25 … 570 Next
  • Books
  • Testimonials
  • Privacy Policy

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