Value of Shrinking a SQL 2012 Database

I have a SQL 2012 DB that is 180GB but list as having 100GB of available free space. Besides saving disk space, is there any value in shrinking the DB? I know shrink a DB causes fragmentation but if you ran a maintenance plan to address this, is there any benefit?
LVL 21
compdigit44Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Vikas GargAssociate Principal EngineerCommented:
Hello,

There is no benefit except free disk space for shrinking.

But shrinking has more disadvantages like high fragmentation.

So do not use shrink just to get free disk space.

However the free space in database will be utilized in future transactions.
Vitor MontalvãoMSSQL Senior EngineerCommented:
Shrink ONLY benefit is to release space and fragmentation is really a bad side for shrink. Also during shrink process you'll have performance issues since databases pages will be moved.
If you shrink transactional log then you won't have fragmentation issue but VLF's issue.

So, I really don't see no benefit for shrink task. Only do it in as an emergency procedure to free space but be aware of the issues.
Scott PletcherSenior DBACommented:
Typically you don't want to shrink dbs, as stated.

That said, if you have 100G of non-log space unused out of 180G, I would certainly do a shrink(s) to release a big part of that 100G.  Naturally any specific situation may call for temporarily ignoring general rules.
compdigit44Author Commented:
Can a shrink be done online and is there an performance gain in doing so after the fact
Scott PletcherSenior DBACommented:
A shrink is always done "online", i.e., others can still use the db while it is being shrunk.

There is no performance gain from shrinking data files.  There could be from shrinking the log file.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server

From novice to tech pro — start learning today.