Knowledgebase

How to clean MS SQL 2008 transaction log file

Please login to Mylittleadmin in websitepanel and execute this acript against your database:

USE yourdatabasename_here;

GO

-- Truncate the log by changing the database recovery model to SIMPLE.

ALTER DATABASE yourdatabasename_here

SET RECOVERY SIMPLE;

GO

-- Shrink the truncated log file to 1 MB.

DBCC SHRINKFILE (2, 1);  -- 2 is the file ID for tr log file,you can also mention the log file name (FrigoBG_plovdiv_log)

GO

-- Reset the database recovery model.

ALTER DATABASE yourdatabasename_here

SET RECOVERY FULL;

GO

Was this answer helpful?

 Print this Article

Also Read

On Windows 2008 hosting, I get a 500 error page and the error is not shown. How to I display the error?

Load file manager in WebsitePanel, edit the web.config file in your DOMAIN/wwwroot folder Â...

How to send email from classic asp / CDOSYS /

<%Dim ObjSendMailSet ObjSendMail = CreateObject("CDO.Message")  'This section provides the...

What is FTP hostname/server address for Windows servers?

FTP server address/host name is ftp.yourdomain and port 21

Understanding Physical and Virtual Directory Structures

Beyond home directory wwwroot, Microsoft Web sites also use the following:■ Physical...

How to enable remote IIS management for my site?

Login to your hosting control panel here http://cp.aspnethosting.co.uk then click on Web - Web...