Solved

SQl error event viewer

Posted on 2011-02-18
4
319 Views
Last Modified: 2012-05-11

Is there a way to get notified when there is a speicific SQL error in event viewer?
0
Comment
Question by:Nana Hemaa
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 12

Accepted Solution

by:
mcv22 earned 250 total points
ID: 34927846
Win Server 2003 doesn't have a native way of doing this. You can use Log Parser from Microsoft (http://technet.microsoft.com/en-us/scriptcenter/dd919274.aspx)

Win Server 2008 has the feature to send email notifications on specific event types (http://www.vistax64.com/tutorials/67961-event-viewer-email-notification.html)
0
 
LVL 40

Assisted Solution

by:lcohan
lcohan earned 250 total points
ID: 34928229
In my opinion is best to setup and use SQL Server Alerts why to wait for them to get in the event viewr and parse the viewer then send an email when you could set up an alert in sql for speciffic error and send notification when it occurs.

http://msdn.microsoft.com/en-us/library/ms180982.aspx
0
 

Author Comment

by:Nana Hemaa
ID: 34928851
tried that but could not find specific alert in the drop down for
17054,
 Severity: 16, State: 1.
0
 
LVL 40

Expert Comment

by:lcohan
ID: 35011373
Open SSMS, connect with a sql sysadmin user, expand SQL Agent at the bottom, right click alerts and select new then a window pops up where you should click "Error number" like in attached picture then type in your number and go from there - check "Response" and "Options" on the left panel for more stuff you can do based on that error code.
Alert.png
0

Featured Post

Free eBook: Backup on AWS

Everything you need to know about backup and disaster recovery with AWS, for FREE!

Question has a verified solution.

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

by Mark Wills PIVOT is a great facility and solves many an EAV (Entity - Attribute - Value) type transformation where we need the information held as data within a column to become columns in their own right. Now, in some cases that is relatively…
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

728 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