Legal oversight can be perplexing, even for the most knowledgeable professionals.
When you're on the hunt for a Maintenance Plan To Reduce Log File and lack the time to search for the correct and recent version, the process can be daunting.
Access legal and business forms tailored to your state or county.
US Legal Forms meets any needs you might have, from personal to business documentation, all conveniently located in one platform.
For first-time users of US Legal Forms, create an account to gain unlimited access to the platform's features. Here are the steps to follow after downloading the desired form.
Set the recovery model to Simple and exit the menu. Right-click the database again and select Tasks -> Shrink -> Files. Change the type to Log . Under Shrink action, select Reorganize pages before releasing unused space and click OK.
Create a maintenance plan using the Maintenance Plan Wizard Right-click the Maintenance Plans folder and select Maintenance Plan Wizard. Follow the steps of the wizard to create a maintenance plan. For more information, see Use the Maintenance Plan Wizard.
After you set the recovery model to 'Simple' for a database, you can shrink the current transaction log file to regain space: Start Microsoft SQL Server Management Studio. Expand 'Databases'. Right-click the database that has the transaction log you wish to shrink and select 'Tasks' > 'Shrink' > 'Files'.
So we have a couple of different ways to shrink the log file. We can go into SQL Server Management Studio. go to the properties of the database and do the shrink operation there and we're going to demonstrate that first off. Then we also have the operation of doing the TSQL ShrinkFile command.
To shrink a data or log file using SSMS In Object Explorer, connect to an instance of the SQL Server Database Engine and then expand that instance. Expand Databases and then right-click the database that you want to shrink. Point to Tasks, point to Shrink, and then select Files. ... Select the file type and file name.