Search
  Home
  Articles
  Backup
  Books
  Certification
  FAQ
  Products
  Replication
  Scripts
  Seminars
  Training
  TSQL

MSDN Fourms
Philippine SSUG

  Resume

MHS Enterprises
FilAm Software
AcrylicAcetate.com
Bargain Humidors
Western Humidor



My SQL Server errorlog is filling up with entries. How can I switch or truncate it?

With SQL 6.5 and below there is no way to truncate the errorlog or switch it either, short of stop/starting the MSSQLSERVER service.

If the errorlog is filling up your disk then your choices are :-

1. Fix the application(s) that are causing the errors.
2. NTFS compress the log directory to reduce the physical space it takes
3. Move the errorlog to another directory and use the -e startup option to point the errorlogs to the new place.

With SQL 7.0 you can cycle the errorlog(s) with sp_cycle_errorlog 

Michael R. Hotek

All content on this site, except where noted, represents an original work of Michael R. Hotek and is protected by applicable copyright laws. The SQL Server FAQ is the sole work of Neil Pike. No page, portion of a page, or download may be used for commercial purposes in whole or in part without the express, written permission of the applicable author.