Recovering Disk space

Posted on 2004-11-01
Last Modified: 2012-06-22
We copied a large amount of data from one server to another. The data files for tempdb grew  to a point where it used up almost all available disk space.  I stopped and started the services and even went as far as rebooting the server. SQL will not release the free space back to the OS.  BOL says that tempdb is re created everytime SQL Server is started.  Any suggestions????
Question by:jvoconnell
    LVL 8

    Expert Comment

    In enterprise manager, have you tried to shrink tempdb yet? That usually makes actual changes to the data file size.
    LVL 1

    Author Comment

    I did try that and it decreased the used space but the free space is still being retained by SQL.
    LVL 7

    Accepted Solution

    I had this problem in the past
    you can find how to solve it in:

    LVL 6

    Expert Comment

    Since you copied a large amount of data, the transaction log must have got full. Try shrinking the log as per the following article;EN-US;272318
    LVL 1

    Author Comment

    Thanks a million!!!!!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Shellfire Box VPN + Lifetime Subscription

    The Shellfire Box easily connects all of your devices, even those that don't offer the possibility to establish a safe vpn connection. Access blocked content and surf safely, no matter where in the world you are located.

    SQL Server Side Trace is a technique of Profiling SQL Server Events Silently (i.e without Using the Profiling Tool). Running a visual tool in production increases overhead, but we can develop server side Trace using Sql Server Profiler itself. We…
    International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
    Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
    Using examples as well as descriptions, and references to Books Online, show the documentation available for datatypes, explain the available data types and show how data can be passed into and out of variables.

    856 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

    9 Experts available now in Live!

    Get 1:1 Help Now