Jump to content

Recommended Posts

Posted

Hi is it ok to shrink the SIMs LDF file using SQL server management studio.

 

Its grown rather large and is now in danger of consuming the northern hemisphere

 

ta much

 

 

Steve

Posted (edited)

If you have the SQL password and can login to SQL Server Management Studio, copy and paste the script below as a New Query and Execute, which will shrink the LDF file.

Please note that in some instances '361001_log' may be 'sims_log'

 

use sims

go

alter database sims

set recovery simple;

go

dbcc shrinkfile('361001_log', 1);

go

alter database sims

set recovery full;

go

Edited by Priya_Shah
Posted (edited)
(KB0024121 - How can you shrink the SIMS / SOLUS 3 / Discover / FMS LDF file?)

 

set recovery full;

go

 

Interesting as the link quotes:

 

"This will truncate the .LDF file and set the recovery model to 'Simple'."

 

Does anybody know which it is actually meant to be as as default?

 

EDIT: Also iirc isn't this meant to be part of the backup process or something?

Edited by Koldov

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...