23.02.2012

How to truncate SQL Logs

Go back to Knowledge Base

SQL DB logs are often growing but are not cleaned. In order to clear them, we can execute or schedule the following command:

backup log InstanceName with truncate_only
go
dbcc shrinkfile (InstanceName_log,0)
go

Go back to Knowledge Base




Last Updates
Help
Translate by Google
English French German Italian Portuguese Russian Spanish Swedish
Visitors Stats
49.1%United States United States
22.8%Switzerland Switzerland
4.8%France France
4.3%Germany Germany
3%United Kingdom United Kingdom
2.1%Netherlands Netherlands
1.7%Japan Japan
0.8%Norway Norway
0.8%Canada Canada
0.8%Australia Australia

Login Form

Current URL
Mobile Barcode
Stats by JoomlaWatch