By default, the SQL Server error logs are kept in the SQL Server's Log subfolder. By default, there are seven SQL Server error logs; Errorlog and Errorlog.1 through Errorlog.6. The name of the current, most recent log is Errorlog with no extension. The log is re-created every time that you restart SQL Server. When the Errorlog file is re-created, the previous log is renamed to Errorlog.1, and the next previous log (Errorlog.1) is renamed to Errorlog.2, and so on. Errorlog.6 is deleted. This actually occurs in reverse order, but the result is the same.
In some cases, you may want to keep more than seven logs archived. In SQL Server 2000 and later versions, the number of error logs that are created before they are recycled is configurable through the context-sensitive popup menu for SQL Server Logs. For more information, consult the following topic in SQL Server Books Online:
Increase the Number of SQL Server Error Logs in SQL Server 7.0 environmentsWARNING: If you use Registry Editor incorrectly, you may cause serious problems that may require you to reinstall your operating system. Microsoft cannot guarantee that you can solve problems that result from using Registry Editor incorrectly. Use Registry Editor at your own risk.
Because this command changes the registry, Microsoft recommends that you back up your changes. You can do this by running the command-line utility Regrebld.exe with the -Backup parameter. For example:
The Regrebld.exe command-line utility is only available in SQL Server 7.0. For information about how to rebuild the registry in SQL Server 2000, see SQL Server Books Online.
This command creates five files in the SQL Server's Binn subfolder:
The new registry key that you can set is:
ID do Artigo: 196909 - Última Revisão: 09/05/2014 - Revisão: 1