Solved

How Do I configure error log settings?

Posted on 2007-12-03
7
793 Views
Last Modified: 2012-08-14
I would like to turn off error logging, or instruct SQL to overwrite log files.  Do you know how I can do this using SQL 2005 express and Management Studio Express?
0
Comment
Question by:alanrogerson2
  • 2
  • 2
  • 2
  • +1
7 Comments
 
LVL 6

Expert Comment

by:PaultheBroker
ID: 20395576
Are talking about error logging or  transaction logging?  To my knowledge, errors are typically returned to the application for the application to write in an error log file...so that would be handled in your application.

Transaction log files on the other hand are part of the backup/restore strategy of the database.  To turn them off,
ALTER DATATBASE myDatabase
SET RECOVERY SIMPLE
0
 

Author Comment

by:alanrogerson2
ID: 20396247
Every few seconds an entry is being made in both the event viewer application log and the sql log file in program files/SQL Server

I would like to turn this off.
0
 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 20397499
Can you tell us what is that entry in "the event viewer application log and the sql log file"?
0
Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

 
LVL 75

Expert Comment

by:Anthony Perkins
ID: 20397516
Also, when you get a chance the following questions appear to have fallen through the cracks and are now considered abandoned:

1 08/28/2007 500 Delphi and Web Application ... Open Delphi Programmi...
2 08/02/2007 500 Display Rows as columns usi... Open SQL Server 2005
0
 

Author Comment

by:alanrogerson2
ID: 20398671
it is a failed logon attempt.  I am using a hosted server on a standard SQL server port so many ip addresses are trying to get into the server but are failing.  I would like to stop logging failures.  

Thanks for the reminder about the open questions.
0
 
LVL 6

Expert Comment

by:PaultheBroker
ID: 20399183
So these are hacking attempts that are failing?   Actually this happens to me to (I will never implement a hosted server on the default ports again !!!! :)  ).   I look forward to hearing if anyone has a solution....
0
 
LVL 7

Accepted Solution

by:
Cedric_D earned 500 total points
ID: 20667637
In SQL Server Configuration Manager, dbl-click on "SQL Server" service, go to Advanced tab, and add three symbols ";-n" to Startup Parameters, then restart service.

But this will eliminate only Windows Event Logging.
As I know, you cannot prevent SQL Server to create ERRORLOG files.
But you can "wipe out" any information from them by calling
DBCC ERRORLOG    seven times :)

0

Featured Post

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Having an SQL database can be a big investment for a small company. Hardware, setup and of course, the price of software all add up to a big bill that some companies may not be able to absorb.  Luckily, there is a free version SQL Express, but does …
I have a large data set and a SSIS package. How can I load this file in multi threading?
Using examples as well as descriptions, and references to Books Online, show the documentation available for date manipulation functions and by using a select few of these functions, show how date based data can be manipulated with these functions.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

930 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now