troubleshooting Question

I cannot shrink my MSSQL TempDB

Avatar of Richard Lloyd
Richard Lloyd asked on
Microsoft SQL Server
7 Comments2 Solutions9 ViewsLast Modified:
I have a MSSQL instance (14.0.1000.169) that has various databases.

My tempdb seems to have grown to 50GB and I and trying to shrink the size as it is taking too much disk space. 99% of the allocated space is free, see screenshot.
I have tried using Management Studio to shrink the files and the database, I have restarted the MSSQL service and have performed a hardware reboot of the server. Nothing seem to reduce the file sizes.

When I try
DBCC SHRINKDATABASE(tempdb, 10);

I get the following:
DBCC SHRINKDATABASE: File ID 1 of database ID 2 was skipped because the file does not have enough free space to reclaim.
DBCC SHRINKDATABASE: File ID 3 of database ID 2 was skipped because the file does not have enough free space to reclaim.
DBCC SHRINKDATABASE: File ID 2 of database ID 2 was skipped because the file does not have enough free space to reclaim.

Can anyone suggest a another way to reduce the amount od space the temdb is taking up?


ASKER CERTIFIED SOLUTION
Pavel Celba
All in One

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Log in to continue reading
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform for $9.99/mo
View membership options
Unlock 2 Answers and 7 Comments.
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
See how we're fighting big data
The Value of Experts Exchange in My Daily IT Life

Experts Exchange (EE) has become my company's go-to resource to get answers. I've used EE to make decisions, solve problems and even save customers. OutagesIO has been a challenging project and... Keep reading >>

Mike

Owner of Outages.IO
Phoenix, Arizona, United States
Member Since 2016
Join a full scale community that combines the best parts of other tools into one platform.
Unlock 2 Answers and 7 Comments.
View membership options
“All of life is about relationships, and EE has made a virtual community a real community. It lifts everyone's boat.”
William Peck

Member since 2004