Solved

SQl error event viewer

Posted on 2011-02-18
4
313 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
  • 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 39

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 39

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

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

If you having speed problem in loading SQL Server Management Studio, try to uncheck these options in your internet browser (IE -> Internet Options / Advanced / Security):    . Check for publisher's certificate revocation    . Check for server ce…
When writing XML code a very difficult part is when we like to remove all the elements or attributes from the XML that have no data. I would like to share a set of recursive MSSQL stored procedures that I have made to remove those elements from …
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

919 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

21 Experts available now in Live!

Get 1:1 Help Now