How do I prevent SQL Server 2000 from posting successful backup
completion messages to the Windows 2000 Application Event Log?
I have scheduled jobs which backup my transaction logs on 50+ databases
and it always writes to the Windows 2000 application event log upon
completion.
Due to the frequency of the jobs it only takes a day for the
Application Log to fill up, which is causing other jobs to get hung up
when trying to write to it. On my Windows 2000 server, I have the
application log event viewer setting correctly set as:
"When maximum log size is reached - Overwrite events as needed" but for
some reason this setting no longer applies like it did for the past
three years. SQLServerAgent and MSSQLSERVER both run under a local
Admin account, without a domain.
When I researched how prevent SQL Server from logging this type of
message, I found that I can use sp_update_alert to disable this
message, but I cannot find
the message_id to correctly disable this message. In sysmessages, the
message I am trying to suppress is
error:18265 severity:10 dlevel:128 description:Log backed up: Database:
%1, creation date(time): %2(%3), first LSN: %4, last LSN: %5, number of
dump devices: %7!d!, device information: (%8). mslangid:1033
I tried calling sp_update_alert as follows:
exec sp_update_alert @name = 'Log backed up: Database: %1, creation
date(time): %2(%3), first LSN: %4, last LSN: %5, number of dump
devices: %7!d!, device information: (%8).', @enabled = 0
but got the error message:
Server: Msg 14262, Level 16, State 1, Procedure sp_update_alert, Line
105
The specified @name ('Log backed up: Database: %1, creation date(time):
%2(%3), first LSN: %4, last LSN: %5, number of dump devices: %7!d!,
device inf') does not exist.
Looks like it can only handle 128 characters.
How can I disable this message from being logged in the Application
Log? Or alternatively, how can I get the event viewer to behave as
expected and
"Overwrite events as needed"?
Thanks,
Mike Orlando 9 7232
Mike (mj*******@campsystems.com) writes: When I researched how prevent SQL Server from logging this type of message, I found that I can use sp_update_alert to disable this message, but I cannot find the message_id to correctly disable this message. In sysmessages, the message I am trying to suppress is error:18265 severity:10 dlevel:128 description:Log backed up: Database: %1, creation date(time): %2(%3), first LSN: %4, last LSN: %5, number of dump devices: %7!d!, device information: (%8). mslangid:1033
I tried calling sp_update_alert as follows:
exec sp_update_alert @name = 'Log backed up: Database: %1, creation date(time): %2(%3), first LSN: %4, last LSN: %5, number of dump devices: %7!d!, device information: (%8).', @enabled = 0
Look in msdb..sysalerts. You should find the message there. If you don't,
I suppose that sp_update_alert is not your guy after all.
--
Erland Sommarskog, SQL Server MVP, es****@sommarskog.se
Books Online for SQL Server SP3 at http://www.microsoft.com/sql/techinf...2000/books.asp
I agree, sp_update_alert is not the answer. I actually checked the
sysalerts table and only found 10 rows in this table. None matched the
message which I'm trying to suppress. Since I'm looking for a
message_id, I also tried calling sp_altermessage 17055, 'WITH_LOG',
'false' using the event ID 17055 found in the Windows Event Viewer and
also tried with 18265, which is the first part of the event
description, but no luck. Any other suggestions? Thanks.
Mike (mj*******@campsystems.com) writes: I agree, sp_update_alert is not the answer. I actually checked the sysalerts table and only found 10 rows in this table. None matched the message which I'm trying to suppress. Since I'm looking for a message_id, I also tried calling sp_altermessage 17055, 'WITH_LOG', 'false' using the event ID 17055 found in the Windows Event Viewer and also tried with 18265, which is the first part of the event description, but no luck. Any other suggestions? Thanks.
Since I don't know this stuff myself very well, I asked in our internal MVP
forum, and Jasper Smith who I trust to know this very well told me that
there is no way to prevent the logging to event log.
--
Erland Sommarskog, SQL Server MVP, es****@sommarskog.se
Books Online for SQL Server SP3 at http://www.microsoft.com/sql/techinf...2000/books.asp
Erland Sommarskog wrote: Mike (mj*******@campsystems.com) writes:
I agree, sp_update_alert is not the answer. I actually checked the sysalerts table and only found 10 rows in this table. None matched the message which I'm trying to suppress. Since I'm looking for a message_id, I also tried calling sp_altermessage 17055, 'WITH_LOG', 'false' using the event ID 17055 found in the Windows Event Viewer and also tried with 18265, which is the first part of the event description, but no luck. Any other suggestions? Thanks.
Since I don't know this stuff myself very well, I asked in our internal MVP forum, and Jasper Smith who I trust to know this very well told me that there is no way to prevent the logging to event log.
This might be an obvious thing to look at, but have you tried this..?
1. Open the properties of the job.
2. Go to the Notifications tab.
3. Make sure that the "Write to the Windows Application Event Log"
option is un-checked.
[Posted and mailed]
"Mike" <mj*******@campsystems.com> writes: I agree, sp_update_alert is not the answer. I actually checked the sysalerts table and only found 10 rows in this table. None matched the message which I'm trying to suppress. Since I'm looking for a message_id, I also tried calling sp_altermessage 17055, 'WITH_LOG', 'false' using the event ID 17055 found in the Windows Event Viewer and also tried with 18265, which is the first part of the event description, but no luck. Any other suggestions? Thanks.
I spoke too soon when I said that it is not possible.
You can use trace flag 3226 to suppress these messages.
There is also a related trace flag 3001 that suppresses logging
to msdb.backuphistory.
These flags are undocumented with all that means. On the other hand,
I got them from a Microsoft engineer who said it was OK to share them.
--
Erland Sommarskog, Stockholm, es****@sommarskog.se
Thanks GP, but when I uncheck the "Write to the Windows Application
Event Log"
option the job still writes to the Application Event Log. I noticed
some strange behavior when unchecking this option. When it is checked
the drop down that's associated with it is showing "When the job fails"
so before unchecking it I changed the drop down to "When the job
succeeds" and then unchecked the box. After applying the changes and
running the job, the Application Event Log still gets written to, and
when I go back to the job I just changed, I see the disabled drop down
showing "When the job fails" again. I want to see the messages getting
written if the job fails, but only suppress the informational messages
upon success, but either way this method fails to suppress the
successful informational messages. FYI, I have never seen the
Transaction Log Backup job fail.
Thanks Erland but I'm still not achieving my objective. Neither DBCC
TRACEOFF (3226) nor DBCC TRACEOFF (3001) stops the logging. I tried it
on the Master and the msdb databases and nothing changed. Should this
command be run against a different database? Mike
Mike (mj*******@campsystems.com) writes: Thanks Erland but I'm still not achieving my objective. Neither DBCC TRACEOFF (3226) nor DBCC TRACEOFF (3001) stops the logging. I tried it on the Master and the msdb databases and nothing changed. Should this command be run against a different database? Mike
Of course not. TRACEOFF turns off the trace flag! :-)
I didn't specify how to should activate the flag, because I was not
given any details on that. The simplest might be to add to the command
line (you can do this from Enterprise Manager), but it requires a server
restart).
I believe that DBCC TRACEON from a query window affects that process only,
nut adding -1 affects the server level. But I am very foggy on that point.
--
Erland Sommarskog, SQL Server MVP, es****@sommarskog.se
Books Online for SQL Server SP3 at http://www.microsoft.com/sql/techinf...2000/books.asp
Just wanted to add a usage note here. I was pestered by the same
situation (event log overload from transaction replication on 40+ DBs).
I was able to suppress the backup / restore events in the Application
Event Log, resulting from SQL Log Shipping with these steps:
1) Go to the SQL Server Properties via Enterprise Manager (i.e. right
click the server and go to properties)
2) General Tab
3) Startup Parameters
4) Add new startup parameter--> /T3226
5) Apply / close dialog
6) Restart SQL Server instance
I am still able to view my backup / copy / restore history from the Log
Shipping Monitor or from the histories of each individual SQL Agent
job. That is much cleaner for my purposes.
Good luck -
Dave
Erland Sommarskog wrote: Mike (mj*******@campsystems.com) writes: Thanks Erland but I'm still not achieving my objective. Neither DBCC TRACEOFF (3226) nor DBCC TRACEOFF (3001) stops the logging. I tried it on the Master and the msdb databases and nothing changed. Should this command be run against a different database? Mike
Of course not. TRACEOFF turns off the trace flag! :-)
I didn't specify how to should activate the flag, because I was not given any details on that. The simplest might be to add to the command line (you can do this from Enterprise Manager), but it requires a server restart).
I believe that DBCC TRACEON from a query window affects that process only, nut adding -1 affects the server level. But I am very foggy on that point.
-- Erland Sommarskog, SQL Server MVP, es****@sommarskog.se
Books Online for SQL Server SP3 at http://www.microsoft.com/sql/techinf...2000/books.asp This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: henryavl |
last post by:
Hello All,
I recently had to reinstall windows 2000 professional due to a harddrive
crash, I downloaded all the newest updates, now I find that session
variables are not being kept from page to...
|
by: Michael Adkins |
last post by:
I have a new ASP project that I need to desperately test on my Windows 2000
machine before posing to my Hosting Company. I am having problems getting
the ASP pages to run from LocalHost. I will...
|
by: |
last post by:
Hi there movers & shakers,
The example below demonstrates a behaviour that is anoying the tits off of
me! It doesn't happen whilst debugging from the IDE only when you run the
compiled exe from...
|
by: Daniel Walzenbach |
last post by:
Hi
I am faced with the following problem: I have a page (let’s call this page page1.aspx) containing some TextBoxes and a hyperlink which opens another page (let’s call this page page2.aspx)...
|
by: Patrick |
last post by:
I have an ASP.NET application that connects to a SQL Server database.
The SQL Server resides on a seperate development server from the IIS5.1 on
Windows XP SP2 on development PCs which host the...
|
by: Roman Troshkov |
last post by:
Hello,
I Hope to see any opinions on this problem:
After installing Net framework 2 on one of our Win2003 Web server I have
experiencing trouble accessing MS SQL 2000 database.
Configuration...
|
by: Mark Rowland |
last post by:
Please bear with me, as I am a newbie in the world of databases and DB2.
We are trying to migrate an application that binds to a DB2 database
(Workgroup Edition, V6.1) from a server running Windows...
|
by: Robbert van Geldrop |
last post by:
Hello,
I have a problem restoring Exchange 2000 files. Our software has an
interface to ESEBCLI2.dll for online backup and restore features. Everything
works fine with Exchange 2003 and also...
|
by: bill |
last post by:
I dynamically create buttons and associate them with an event using
AddHandler.
I want all the button events to fire at one time, when the page is posted,
instead of when each button is clicked....
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM)
The start time is equivalent to 19:00 (7PM) in Central...
|
by: erikbower65 |
last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps:
1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal.
2. Connect to...
|
by: erikbower65 |
last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA:
1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Sept 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM)
The start time is equivalent to 19:00 (7PM) in Central...
|
by: Taofi |
last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same
This are my field names
ID, Budgeted, Actual, Status and Differences
...
|
by: DJRhino1175 |
last post by:
When I run this code I get an error, its Run-time error# 424 Object required...This is my first attempt at doing something like this. I test the entire code and it worked until I added this -
If...
|
by: Rina0 |
last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
|
by: lllomh |
last post by:
Define the method first
this.state = {
buttonBackgroundColor: 'green',
isBlinking: false, // A new status is added to identify whether the button is blinking or not
}
autoStart=()=>{
|
by: Mushico |
last post by:
How to calculate date of retirement from date of birth
| |