DBCC

SQLServerCentral Article

How to Safely Remove a SQL Server Data File Without Downtime

  • Article

Learn how to safely remove a SQL Server .ndf data file without any downtime using DBCC SHRINKFILE (EMPTYFILE). This hands-on tutorial walks through real-world Azure-based setup, data redistribution, and storage cleanup — ideal for DBAs managing enterprise SQL Server environments.

(3)

You rated this post out of 5. Change rating

2025-05-16

3,010 reads

Blogs

Microsoft Purview data governance best practices

By

Microsoft Purview can be the best data governance tool in the world, but it...

AI Insights for Database Monitoring: A DBA’s Perspective

By

Second in a series on Ai and databases. One Story, three signals – I...

Crash-Consistent MongoDB Snapshot and Restore with Everpure Fusion

By

I’ve been working on a project that combines two things I spend a lot...

Read the latest Blogs

Forums

PolyBase Trace Flags

By Leo.Miller

Are there any good articles on all the trace flags that are enabled on...

The Data Model Matters

By Steve Jones - SSC Editor

Comments posted to this topic are about the item The Data Model Matters

Understanding SQL Server PARTITION BY with Examples

By Imran2629

Comments posted to this topic are about the item Understanding SQL Server PARTITION BY...

Visit the forum

Question of the Day

Running SQLCMD I

I run the SQLCMD utility as follows:

lcmd -S localhost -E
I then type this (the 1> is the prompt):
1> select @@version go
If I hit enter, what happens?

See possible answers