Solved

Disk Space Allocation

Posted on 1998-12-11
1
226 Views
Last Modified: 2012-05-04
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
Comment
Question by:jacknjill
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 

Accepted Solution

by:
mhamra earned 20 total points
ID: 1092242
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

The Ultimate Checklist to Optimize Your Website

Websites are getting bigger and complicated by the day. Video, images, custom fonts are all great for showcasing your product/service. But the price to pay in terms of reduced page load times and ultimately, decreased sales, can lead to some difficult decisions about what to cut.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article shows gives you an overview on SQL Server 2016 row level security. You will also get to know the usages of row-level-security and how it works
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Viewers will learn how the fundamental information of how to create a table.

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question