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
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
Slim bicycle beside its detached bulky canvas pannier

Vertical Partitioning: Moving Rarely Used Columns Off a Hot Table

June 2, 2014
Pinal Dave
SQL Tips and Tricks
Normalization, SQL Data Storage, SQL Performance

Moving rarely used columns to a side table can cut reads, or change nothing. Here is how to measure it and what it costs your writes.

Read More
A boot moves into a snowshoe binding while a separate pouch stays behind

Moving a Table to Another Filegroup by Rebuilding Its Clustered Index

April 21, 2014
Pinal Dave
SQL Tips and Tricks
Clustered Index, SQL Data Storage, SQL Index

One statement moves the rows, but large-object data and other indexes stay behind. A small demo shows exactly where everything ends up.

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

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