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
An empty extended bicycle repair stand takes more floor space than an identical folded stand

Deleting From a Heap: Why Empty Pages Stay Behind

May 27, 2015
Pinal Dave
SQL Tips and Tricks
SQL Data Storage, SQL Delete, SQL Heap

The rows are gone but the table is the same size and scans are just as slow. Here is why, and two ways to fix it.

Read More
Copper seam held by fixed rivets with a new rivet waiting at the end

Append-Only Ledger Tables for Audit Logs That Cannot Be Edited

January 21, 2015
Pinal Dave
SQL Tips and Tricks
SQL Audit, SQL Data Storage, SQL Server Security

Can someone quietly edit your audit table? With an append-only ledger and a stored digest, the answer becomes no, and you can prove it.

Read More
Identical hockey pucks sit in open sleeves of three different colors.

Primary Data File Extensions: Does the .mdf Name Matter?

December 14, 2014
Pinal Dave
SQL Tips and Tricks
Database, SQL Data Storage, SQL Scripts, SQL Server Architecture

Can a primary data file end in something other than .mdf? I built a demo database with odd names, checked each file, then detached and attached it.

Read More
SQL SERVER - FIX - The database 'model' is marked RESTORING and is in a state that does not allow recovery to be run

SQL SERVER – FIX – The database ‘model’ is marked RESTORING and is in a state that does not allow recovery to be run

November 25, 2014
Pinal Dave
SQL Tips and Tricks
SQL Backup and Restore, SQL Data Storage, SQL Scripts

After a backup restore mistake, SQL Server would not start and ERRORLOG said the database ‘model’ is marked RESTORING. This is how I got it running again.

Read More
Roof diverter sending new rain to an empty vessel beside an older filled vessel

Default Filegroup: Sending New Tables Away From PRIMARY

October 6, 2014
Pinal Dave
SQL Tips and Tricks
Database, SQL Data Storage, SQL Server Configuration

Changing the default filegroup only affects tables you create later. Here is what moves, what does not, and how a script can quietly ignore the rule.

Read More
Stop collar limiting the extension of one telescoping support pole

Capping File Growth So One Query Cannot Fill a Whole Disk

July 27, 2014
Pinal Dave
SQL Tips and Tricks
Disk, SQL Data Storage, Transaction Log

One runaway load can fill a shared drive and take every database down with it. A MAXSIZE cap moves the failure to one database.

Read More
Adjustable band inside a felt hat beside a cut band and matching insert

Metadata-Only Column Changes: Which ALTER COLUMN Is Instant

July 6, 2014
Pinal Dave
SQL Tips and Tricks
SQL Column, SQL Data Storage, Transaction Log

Six ALTER statements look equally small, but their log cost is not. Here is how to measure each one before the change window.

Read More
Previous 1 … 6 7 8 9 10 11 12 … 24 Next
  • Books
  • Testimonials
  • Privacy Policy

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