Solved

SQl error event viewer

Posted on 2011-02-18
4
320 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

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

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

Introduction This article will provide a solution for an error that might occur installing a new SQL 2005 64-bit cluster. This article will assume that you are fully prepared to complete the installation and describes the error as it occurred durin…
In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

635 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