If you are in control of a website that has considerable traffic you have no doubt found that MS SQL Server will eat into hard drive space with it’s error log file.
Basically this file contains log information on the activity of SQL Server instance. However it can grow to a fairly large size and it is advisable to move it from you live server to some sort of backup.
You can’t just move this file though as it is in use the whole time, any attempt to cut and paste it or do anything with it will be blocked by MS SQL Server.
What you have to do it run a query command on the server. Open up your server management studio and type/paste in the following:
Basically this command ends the life cycle of the current error log and starts a new one. This will allow you to move the current error log off the server or to a backup hard drive on the server.