Reputation: 450
I have a database table that is being used to store Xml. A lot of the records have a base64 pdf file within the Xml which is taking up a lot of space. If I clear the Xml column out the size of the database doesn't shrink. I've even tried completely deleting every record on our test database and the physical size of the database is still sitting at 300 GB. How do I get SQL to realize that the space is no longer being used and it should re-size?
I've tried DBCC Shrinkfile but it just makes the log file grow by 1GB.
Upvotes: 1
Views: 4064
Reputation: 5306
Exert
To shrink a database
Using SQL Server Management Studio
Tasks
, point to Shrink
, and then click Database
.Upvotes: 1