I want to drop a now supposedly redundant file in SQL Server (2005), but when I try to drop it I am told that the file is not empty. Does anyone know of a way to find out what data is still in this file so I can make whatever changes I need to allow me to drop it?
Share
Assuming you’re moved the table etc, you’ll probably need to run:
See DBCC SHRINKFILE
To check (this is a cut’n’paste of a usage script I use):