TempDB - 70GB (70GB free space) but cant shrink DB, restarted SQL - Service - still 70GB ... what can i do ?

Hello Guys i've got a little problem here... because of some year end jobs the tempdb has grown up to 70GB. But from the 70GB only 4MB are used... i tried to shrink it down to 5gb (was in the beginning 5gb) didn't work... loging in in single user mode and
then tried to shrink it, didn't work... i restarted the sql service... tempDB still 70GB...
What else could i do ?
Has someone experienced this problem already ? Thanks for your help
Regards, Dominic

CAn you try the below steps?
1)DBCC SHRINKFILE ('tempdev', 1024)
The query executed successfully but the size of the database did not change.
2)SELECT * FROM sys.dm_exec_requests WHERE database_id = 2
No open transactions! Alright, any process holding locks on tempdb?
3)select * from sys.dm_tran_locks where resource_database_id= 2
No locks! There was a mention of sys.dm_db_session_space_usage DMV which helps to track the number of page allocation and deallocation by each session on the instance. Hence tried my luck with this query.
4)select * from sys.dm_db_session_space_usage where user_objects_alloc_page_count<> 0
Any session would use tempdb for creating some temporary objects. Since the database was not shrinking, obviously some user defined tables would be there
5)SELECT * FROM tempdb..sys.all_objectswhere is_ms_shipped = 0
Check for user tables on tempdb
After performing all the above steps, Space is big constraint than execute the below command to freeup the cache.
6)DBCC FREEPROCCACHE
This should free up tempdb
7)DBCC SHRINKFILE ('tempdev', 1024)
If this doesn't help then restart the sql server.
--Prashanth

Similar Messages

  • I cant sync my ipad because I get a message that says 'not enough free space' but the more I delete, the less space I have.

    I cant sync my ipad because I get a message that says 'not enough free space' but the more I delete, the less space I have.  Does anyone else have this issue?

    http://support.apple.com/kb/TS1503
    http://www.apple.com/support/ipad/syncing/

  • My time capsule says it has only 75gb free space but when i go through finder to it there is nothing there. trash is empty by the way.

    my time capsule says it has only 75gb free space but when i go through finder to it there is nothing there. trash is empty by the way. i had to delete some things of it as it didnt have enough room and i was backing up too much irrelevant stuff. now it wants to do a complete back up - about 300gb but there is only 75 free. WT

    Ok first what u have to do is remove the Time Capsule from the time machine software and make sure the computer does not back up to the time machine. Next go into disk Utility and find the time capsule. Once found, reformat the drive. Then start using it. If you cannot find the drive in Disk Utility, then open a finder window and find the drive in the sidebar. Right click it and find a button within the drop down menu that will allow you to reformat the drive. If you are forced to go to finder and you right-click the drive, you may have to explore all the options within the drop down menu to find the reformat option.

  • My start up disc is full i have a macbook air, i back everuthing up with time capsule and  have movies all my music libraries and photos onto that too so as i have free space, but my max still says my startup disc is full with "other"

    my start up disc is full i have a macbook air, i back everuthing up with time capsule and  have movies all my music libraries and photos onto that too so as i have free space, but my max still says my startup disc is full with "other"

    First, empty the Trash if you haven't already done so. Then reboot. That will temporarily free up some space.
    According to Apple documentation, you need at least 9 GB of available space on the startup volume (as shown in the Finder Info window) for normal operation. You also need enough space left over to allow for growth of your data. There is little or no performance advantage to having more available space than the minimum Apple recommends. Available storage space that you'll never use is wasted space.
    If you're using Time Machine to back up a portable Mac, some of the available space will be used to make local snapshots, which are backup copies of files you've recently deleted. The space occupied by local snapshots is reported as available by the Finder, and should be considered as such. In the Storage display of System Information, local snapshots are shown as "Backups." The snapshots are automatically deleted when they expire or when free space falls below a certain level. You ordinarily don't need to, and should not, delete local snapshots yourself.
    To locate large files, you can use Spotlight as described here. That method may not find large folders that contain a lot of small files.
    You can also use a tool such as OmniDiskSweeper (ODS) to explore your volume and find out what's taking up the space. You can delete files with it, but don't do that unless you're sure that you know what you're deleting and that all data is safely backed up. That means you have multiple backups, not just one.
    Proceed further only if the problem hasn't been solved.
    ODS can't see the whole filesystem when you run it just by double-clicking; it only sees files that you have permission to read. To see everything, you have to run it as root.
    Back up all data now.
    Install ODS in the Applications folder as usual.
    Triple-click the line of text below to select it, then copy the selected text to the Clipboard (command-C):sudo /Applications/OmniDiskSweeper.app/Contents/MacOS/OmniDiskSweeper
    Launch the Terminal application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Terminal in the icon grid.
    Paste into the Terminal window (command-V). You'll be prompted for your login password, which won't be displayed when you type it. You may get a one-time warning not to screw up. If you see a message that your username "is not in the sudoers file," then you're not logged in as an administrator.
    I don't recommend that you make a habit of doing this. Don't delete anything while running ODS as root. If something needs to be deleted, make sure you know what it is and how it got there, and then delete it by other, safer, means.
    When you're done with ODS, quit it and also quit Terminal.

  • 4GB Micro SD - No Available Free Space, But Card is Empty..?

    4GB Micro SD - No Available Free Space, But Card is Empty..? do l need to reformat sd card and if so how
    Many thanks

    Then there's likely a way to format the card on your GPS. I know that I format my phone and camera cards in my camera and phone - they mount on my Desktop as "NO NAME" and I just manually drag file where they need to be on my Mac. There should be some sort of command on your GPS to format the card - check your owners manual if you're not sure where to find the format option.
    Good luck,
    Clinton

  • HT4848 Hi my name is Hajk and i got a friend that has a problem with her macbook, she gets a blue screen and cant log on. So i told her if she had an reinstall disk so that i could reinstall for her but she didn't get one with the macbook. what can she do

    Hi my name is Hajk and i got a friend that has a problem with her macbook, she gets a blue screen and cant log on. So i told her if she had an reinstall disk so that i could reinstall for her but she didn't get one with the macbook. what can she do ?

    If this is a fairly new Mac running either v10.7 Lion or v10.8 Mountain Lion she can use Lion or Mountain Recovery to repair the startup disk or reinstall OS X.

  • I bought an app for my iPhone, I changed my PC for a Mac and when I sync it erase my app, I want to downloaded again but it says that I have to pay again what can I do?

    I bought an app for my iPhone, I changed my PC for a Mac and when I sync it erase my app, I want to downloaded again but it says that I have to pay again what can I do?

    How are you trying to re-download it, from within the store or the Purchased link ? You should be able to redownload it for free via the Purchased link under Quick Links on the right-hand side of the iTunes store home page on your computer's iTunes : re-downloading.

  • My G Drive will not show up on my desktop for use. It did yesterday. It is not full and currently the light turns on and seems to be running but will not show up on my desktop. What can I do?

    My G Drive will not show up on my desktop for use. It did yesterday. It is not full and currently the light turns on and seems to be running but will not show up on my desktop. What can I do?

    1. verify on another Mac first. and another port.
    2. very likely dead SATA card
    read about it here:
    Your dead external hard drive is likely fine! Great hope for your 'faulty' external HD

  • I have a macbook pro 5,3 white I am trying to hook up to a samsung hdtv.  I have used a mini dv to hdmi adapter but I get no sound on my tv.  What can I do to get sound?

    I have a macbook pro 5,3 white I am trying to hook up to a samsung hdtv.  I have used a mini dv to hdmi adapter but I get no sound on my tv.  What can I do to get sound?

    The Mini DisplayPort-to-HDMI adaptor will only pass video in most cases. You will need to run a separate audio cable along with it. Likely a 3.5mm (male-to-male) cable. Or a 3.5mm (male) to red/white RCA (male) cable. Just depends on what audio input ports your TV has dedicated to the HDMI input.

  • I downloan and updated my iphone software ...i have tried to activate it back but it is not working out error message always what can i do?

    i downloan and updated my iphone software ...i have tried to activate it back but it is not working out error message always what can i do?

    this is the error message........we are sorry we can not continue with your activation please contact customer care
    another message will say actiavtion server not available;
    please what should i do?

  • Help! My new iPhone is asking for a password but I never set one and am locked out - what can I do?!?!

    help!!! My new phone is asking for a password but I never set one and am locked out - what can I do?!?!

    Is it asking for your Apple ID password or the passcode to unlock the phone?
    If it's asking for your passode, use the steps in this article: http://support.apple.com/kb/ht1212

  • I upgraded to iphone 4s and installed iOS 6 but now my battery life is significantly reduced. What can I do to fix this problem?

    I upgraded to iphone 4s and installed iOS 6 but now my battery life is significantly reduced. What can I do to fix this problem?
    I restored my settings my I got the new phone but I think I heard that with the iOS 6 updated that can be an issue and it is better to start from scratch rather than restore your settings.

    reset all settings
    settings- general- reset - reset all settings
    now reconnect to wifi
    settings - wifi- click network name - enter password - join
    if issue persists backup info and restore via itunes
    Peace, Clyde

  • I have an iPhone 4 so I downloaded iOS 7.03 but it doesn't installe it says error accured what can I do to make it install

    I have an iPhone 4 so I downloaded iOS 7.03 but it doesn't installe it says error accured what can I do to make it install

    when one download something from the Internet corruption can happen making the data defect
    when this happen the computer notice it and don't attempt to install the damaged software on the phone which would damage it
    if one try right away to redownload something from the Internet ones isp just give one a copy from their cache (they can't detect if all data in their cache is valid because that would slow everything down)
    wait a bit and the cache will be cleared and you will have a new attempt to download and flash your ios device with the update should it prove uncorrupted this time

  • I have installed Adobe Creative Suite 5 Master Collection on a 2nd computer but now it will not accept the seriall. What can I do?

    I have installed Adobe Creative Suite 5 Master Collection on a 2nd computer but now it will not accept the seriall. What can I do? I'm using a fresh install of windows 8.1

    What exactly means "will not accept"?

  • Auto feed for 4x6 photos moves to back but HP photo paper does not pick-up . What can I do to fix.

    Auto feed for 4x6 photos moves to back but HP photo paper does not pick-up .  What can I do to fix. Photosmart C6180, MS Vista
    Have tried one sheet, multiple sheets, new pack of photo paper etc.

    Hi there,
    This article should help as it covers cleaning your pickup rollers. Check out the video and give the steps outlined a shot and let us know if it helps.
    Best of Luck!
    You can say thanks by clicking the Kudos Star in my post. If my post resolves your problem, please mark it as Accepted Solution so others can benefit too.

Maybe you are looking for