Avatar of adrian78
adrian78

asked on 

Shrink / Compact SQL Server 2008 DB after removing photos that were stored

I have a SQL Server database that had a binary field that stored photos used in profiles and articles.  We've moved this to the filesystem rather than storing them in the DB and now the database queries are faster.  The size of the database didn't change (it's roughly 30GB).  I think almost all of that space isn't needed anymore and the DB may be 10GB without the photos.  Should I compact / shrink the db?  I heard this isn't good to do but in this case, maybe it is.  I won't be storing the photos in the DB going forward either so not sure if it will ever reach that size again.
Microsoft SQL ServerMicrosoft SQL Server 2008

Avatar of undefined
Last Comment
adrian78

8/22/2022 - Mon