Skip to content

Invoke-DbaDbShrink: let files be shrunk evenly and say why they don't shrink #10033

@ReeceGoding

Description

@ReeceGoding

Summarize Functionality

I often use Invoke-DbaDbShrink for tempdb, but:

  1. I am not aware of any way to get Invoke-DbaDbShrink to shrink files evenly
  2. 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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    featuretriage requiredNew issue that has not been reviewed by maintainers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions