[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 232
  • Last Modified:

Disk Space Allocation

I see how you can shrink a database, but how do you free up the space to the system once you've shrunk it?
0
jacknjill
Asked:
jacknjill
1 Solution
 
mhamraCommented:
When you shrink your database, you only reduce the "db device" space used by the database, but not the "db device" size. You cannot shrink your devices. If no database is using a specific device, you can delete it and after that, you need to delete the .dat file to free up disk space. (Maybe the shrink operation free one or more devices that your database is not using)
If your database is installed in one device only or you cannot free some devices with the shrink operation, make a dump to a backup, check your backup, delete the database, delete the device and its asociated .dat file, and recreate the database in smaller devices.
Remember to create your database copying the same extents you did. You can see the "extents creation history" with sp_helpdb <db_name>
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now