Summarize Functionality
On unimportant servers, I often use Invoke-DbaDbShrink for tempdb, but:
- I am not aware of any way to get
Invoke-DbaDbShrink to shrink files evenly
- Unlike the T-SQL that
Invoke-DbaDbShrink calls, Invoke-DbaDbShrink does not print out why my shrink has failed (which often happens in tempdb)
Both of these would help a lot for tempdb operations, which are just about the only sensible example of shrinking a database.
Is there a command that is similiar or close to what you are looking for?
Yes
Technical Details
I'm open to the idea of this being a new command. Shrinking tempdb is a common enough operation on small dev servers that I would love to either have a super easy way to do it or at least an example in the documentation that I can just copy and paste.
Summarize Functionality
On unimportant servers, I often use
Invoke-DbaDbShrinkfor tempdb, but:Invoke-DbaDbShrinkto shrink files evenlyInvoke-DbaDbShrinkcalls,Invoke-DbaDbShrinkdoes not print out why my shrink has failed (which often happens in tempdb)Both of these would help a lot for tempdb operations, which are just about the only sensible example of shrinking a database.
Is there a command that is similiar or close to what you are looking for?
Yes
Technical Details
I'm open to the idea of this being a new command. Shrinking tempdb is a common enough operation on small dev servers that I would love to either have a super easy way to do it or at least an example in the documentation that I can just copy and paste.