Shrink Database SQL 2005

Posted on 2011-04-19
Last Modified: 2012-05-11
I have a large database (.mdf file 597 gigs). I discovered that there were certain tables in the database that were getting loaded again and again, where in actuality they should have had a delete and reload each run. As an example there is one table that had 660 million rows and that was the result of 3 loads. The table should have had 220 million.
So I truncated the tables in question reran the ETL.
My backup file .bak appropriately shrunk to a 150 gig .bak. The .mdf remained at 597 gig, so I am running a shrink database on that file.
This step (the shrink) has been running now for over 24 hours.
My question is, that can and perhaps shoud be the case with a file this big?
Please comment.
Thanks Much
Question by:SeTech
    1 Comment
    LVL 16

    Accepted Solution

    It all depends on your server and disk subsystem. Try killing the process
    that is blocking the shrink.

    Be aware, if you kill any sql server routine accidentally, then your db may be corrupted.


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    PRTG Network Monitor: Intuitive Network Monitoring

    Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

    by Mark Wills PIVOT is a great facility and solves many an EAV (Entity - Attribute - Value) type transformation where we need the information held as data within a column to become columns in their own right. Now, in some cases that is relatively…
    In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    794 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

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now