This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

SEC 5.5.0 Database using a lot of space 180GB how do i shrink it?

Hi. 

 

I'm running / have run out of space on my sophos server windows 2008R2 235gb and it's run out of space has 180GB of space in the sophos database for 500 devices.

 

Any way i can shrink down the database to clear up some space?



This thread was automatically locked due to age.
Parents
  • It's the File c:\Program Files\Microsoft SQL Server\MSSQL10_50.SOPHOS\MSSQL\DATA\SOPHOSPATCH52_log.LDF

     

    That one file is 176Gb

  • Hello StephanieGelder,

    you should back up the database and then either use
      sqlcmd -E -S .\SOPHOS -d SOPHOSPATCH52 -Q "DBCC SHRINKFILE (SOPHOSPATCH52_log, targetsize_in_MB)"
    or             
      sqlcmd -E -S .\SOPHOS -d SOPHOSPATCH52 -Q "DBCC SHRINKDATABASE (SOPHOSPATCH52, target_percent_free)"

    Christian

  • Thanks.

    It needed another " on the end.

     

    The shrink via MB said it wouldn't work as the logical log file located at the end of the file is in use ?

    The shrink by percentage said it wouldn't work as there was no free space in the log file.  It was skipped because the file does not have enough free space to reclaim.

    haha

    shutdown the sophos services and then try it again?

Reply
  • Thanks.

    It needed another " on the end.

     

    The shrink via MB said it wouldn't work as the logical log file located at the end of the file is in use ?

    The shrink by percentage said it wouldn't work as there was no free space in the log file.  It was skipped because the file does not have enough free space to reclaim.

    haha

    shutdown the sophos services and then try it again?

Children