Home Forums Programming Powershell script Powershell simple to recovery mode RE: script Powershell simple to recovery mode

  • Not that I think this is a good idea, but once you have the db, or db files, you would use a PoSh command to execute dbcc shrinkdatabase or dbccshrinkfile.

    You would  be better off using placeholders to free up space when needed and then deal with the issue. https://voiceofthedba.com/2014/12/01/creating-placeholder-files/