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 a row of teacups with cream ribbons and one cup with a vermilion ribbon

Rename Logical File Name of a SQL Server Database

August 31, 2018
Pinal Dave
SQL Tips and Tricks
SQL Backup and Restore, SQL Data Storage, SQL Scripts

To rename logical file name entries in SQL Server, use ALTER DATABASE with MODIFY FILE and NEWNAME. This post builds a demo database, renames both files and checks the result. It also covers names with dots and the two errors that stop a rename.

Read More
Msg 0, Level 11, State 0, Line 10.

SQL SERVER – Incorrect Error: Unable to Add Filegroup – A Severe Error Occurred on the Current Command

January 31, 2018
Pinal Dave
SQL Tips and Tricks
SQL Data Storage, SQL Error Messages, SQL Scripts, SQL Server

A client with a huge partitioned database could not add filegroup and got Msg 0, a severe error. Here is how we found the real, much deeper issue.

Read More
Fine wax bead from a copper canting beside a broad hardened wax bead

The money Data Type: Where Division and Rounding Go Wrong

October 10, 2017
Pinal Dave
SQL Tips and Tricks
Data Visualization, Data Warehousing, Master Data Services, SQL Data Storage

Dividing money by money loses digits before any cast can save them. Here is the one-third demo, and how to find the leftover penny.

Read More
Scarf fringe with both tied and untied threads visible

Building a Data Dictionary Query From Extended Properties

September 29, 2017
Pinal Dave
SQL Tips and Tricks
Data Warehousing, Master Data Services, SQL Data Storage, SQL Extended Events

A plain join quietly hides every column nobody described. See the LEFT JOIN that keeps them, and turn the gaps into a to-do list.

Read More
Gouache painting of a detective's hat and magnifying glass beside two trunks, the swollen one with a vermilion strap

Database File Size Shrinks by Itself? Check Auto Shrink

August 15, 2017
Pinal Dave
SQL Tips and Tricks
Shrinking Database, SQL Data Storage, SQL Scripts, SQL Server Configuration

When a database file keeps getting smaller after you set its size, check Auto Shrink first. This post shows why a size you set later isn’t protected, then gives three checks: the database flag, jobs that shrink, and the default trace. It ends with the fix and the reason shrinking costs more than it saves.

Read More
Intact archive cases are set aside for inspection while the retained collection remains secure.

SQL SERVER – Previewing Old Azure Backup Blobs Before Removal with PowerShell

June 19, 2017
Pinal Dave
SQL Tips and Tricks
PowerShell, SQL Azure, SQL Data Storage, SQL Scripts, SQL Server

Backup Files From Azure Storage need a retention review before removal. I list the candidates before approving any cleanup.

Read More
A bookcase with every shelf about two-thirds full, leaving space for new books, one being slipped into a gap.

Finding Which Indexes Use a Custom Fill Factor Setting

March 22, 2017
Pinal Dave
SQL Performance
DBA, SQL Data Storage, SQL Index, SQL Server

Find indexes with a custom fill factor, compare their page counts, and review one rebuild without changing the server-wide setting.

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

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