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 wooden crates with one repainted in vermilion and a brush on its rim

Rename Physical File Name of a SQL Server Database

September 1, 2018
Pinal Dave
SQL Tips and Tricks
SQL Data Storage, SQL Scripts, SQL Server Configuration

To rename physical file name entries for a SQL Server database, take it offline, change the catalog with MODIFY FILE, rename the files in Windows and bring the database online. This post builds a demo, shows the error a missing file causes, and gives a way to undo the change.

Read More
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
User defined function to extract only numbers from string.

SQL SERVER – UDF – User Defined Function to Extract Only Numbers From String – Number Table Method

August 30, 2018
Pinal Dave
SQL Tips and Tricks
SQL Function, SQL Scripts, SQL Server

I rewrote my User Defined Function to extract only numbers from a string. The new one uses a numbers table, also called a Tally table, instead of a WHILE loop.

Read More
Database CheckCompletion error.

SQL SERVER – Unable to Attach Database Files – The PageAudit Property is Incorrect – Ransomware Attack

August 29, 2018
Pinal Dave
SQL Tips and Tricks
SQL Audit, SQL Error Messages, SQL Log, SQL Scripts, SQL Server, SQL Server Security

After a ransomware attack, a client could not attach database files and saw: The PageAudit property is incorrect. Here is what the error means.

Read More
A crowbar lifting a cracked paving slab from a garden path, a new slab leaning on a red bucket

SQL SERVER – How to DROP or DELETE Suspect Database?

August 27, 2018
Pinal Dave
SQL Tips and Tricks
Database Corruption, SQL Error Messages, SQL Server

A client’s production database was stuck in suspect state and they could not even drop it. Here is how I helped them drop the suspect database.

Read More
Title card: CREATE FILE Encountered Operating System Error 5

SQL SERVER – FIX: CREATE FILE Encountered Operating System Error 5 (Access is Denied.)

August 25, 2018
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Server, Windows

After a disk migration on a cluster, SQL Server would not start: CREATE FILE encountered operating system error 5 (Access is denied.) on TempDB. I share the fix.

Read More
SQL Server upgrade error.

SQL SERVER – Upgrade Blocked: The Specified Edition Upgrade is Not Supported

August 24, 2018
Pinal Dave
SQL Tips and Tricks
SQL Error Messages, SQL Server, SQL Upgrade

Upgrading SQL Server 2008 R2 Express to SQL Server 2012 Evaluation failed with: Upgrade Blocked: The specified edition upgrade is not supported. Let me explain why.

Read More
Previous 1 … 103 104 105 106 107 108 109 … 571 Next
  • Books
  • Testimonials
  • Privacy Policy

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