Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
raghuveer125
Constraint Violating Yak Guru
285 Posts |
Posted - 2014-03-13 : 10:09:00
|
Hi All,I want to write/append SQL server errorlog with below script output.SELECT top 1 * FROM msdb.dbo.sysmail_event_log where last_mod_date > GETDATE()-1 and event_type = 'error'and description like 'The mail could not be sent to %' order by log_date descWhy I need above scenario.I'm monitoring SQL instances with 3rd party tool which reads error string(Which I've provide) from sql errorlog.txt file and sends alerts or creates ticket.In Love... With Me! |
|
|
|
|