PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Hébergement serveur > ms.sqlserver.server > ALerts not working
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
ALerts not working

Réponse
 
LinkBack Outils de la discussion
Vieux 29/08/2008, 22h52   #1
Jason Folkens
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut ALerts not working

I'm running SQL SErver 2005. I've created an SQL Alert for events of
severity 15 (syntax errors).

I created an Operator with my name. I added my email and my net send
address to the operator.

I assigned that operator to the Alert.

I then went into management studio and issued the following command:

select * form mytable

Notice the Intentional misspelling of FROM. This issued an error of
severity 15, but I got no alert, and the alert count in the SSMS UI hasn't
incremented.

I've confirmed that SQL SErver Agent is running. There is nothing useful in
the event viewer for the database server, and SQL Server agent runs under
the same domain user that sql server runs under. I've also confirmed that
the event log is running, and nothing useful appears in the Error Logs in
SSMS.

What else should I check?

Thanks,

JRF


  Réponse avec citation
Vieux 29/08/2008, 23h54   #2
Tibor Karaszi
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: ALerts not working

Most messages *do not* end up in eventlog/errorlog. Those cannot be caught by an alert (since
Eventlog is what Agent polls). This is the way it is, quite simply. In 2000 and earlier you could
configure whether an error should go to eventlog (sp_altermessage) but that possibility isn't
available as of 2005.

--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://sqlblog.com/blogs/tibor_karaszi


"Jason Folkens" <msnews@folkens.org> wrote in message
news:%23RXCakhCJHA.2476@TK2MSFTNGP06.phx.gbl...
> I'm running SQL SErver 2005. I've created an SQL Alert for events of severity 15 (syntax
> errors).
>
> I created an Operator with my name. I added my email and my net send address to the operator.
>
> I assigned that operator to the Alert.
>
> I then went into management studio and issued the following command:
>
> select * form mytable
>
> Notice the Intentional misspelling of FROM. This issued an error of severity 15, but I got no
> alert, and the alert count in the SSMS UI hasn't incremented.
>
> I've confirmed that SQL SErver Agent is running. There is nothing useful in the event viewer for
> the database server, and SQL Server agent runs under the same domain user that sql server runs
> under. I've also confirmed that the event log is running, and nothing useful appears in the
> Error Logs in SSMS.
>
> What else should I check?
>
> Thanks,
>
> JRF
>


  Réponse avec citation
Vieux 30/08/2008, 04h33   #3
Jason Folkens
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: ALerts not working

what then is the purpose behind setting alerts for severity 15 if they dont
get logged?

Is it effectively broken and therefore should probably be removed from the
dropdown list?

Or can it be activated through setting a trace flag?



"Tibor Karaszi" <tibor_please.no.email_karaszi@hotmail.nomail.co m> wrote in
message news:%238KJdHiCJHA.3268@TK2MSFTNGP03.phx.gbl...
> Most messages *do not* end up in eventlog/errorlog. Those cannot be caught
> by an alert (since Eventlog is what Agent polls). This is the way it is,
> quite simply. In 2000 and earlier you could configure whether an error
> should go to eventlog (sp_altermessage) but that possibility isn't
> available as of 2005.
>
> --
> Tibor Karaszi, SQL Server MVP
> http://www.karaszi.com/sqlserver/default.asp
> http://sqlblog.com/blogs/tibor_karaszi
>
>
> "Jason Folkens" <msnews@folkens.org> wrote in message
> news:%23RXCakhCJHA.2476@TK2MSFTNGP06.phx.gbl...
>> I'm running SQL SErver 2005. I've created an SQL Alert for events of
>> severity 15 (syntax errors).
>>
>> I created an Operator with my name. I added my email and my net send
>> address to the operator.
>>
>> I assigned that operator to the Alert.
>>
>> I then went into management studio and issued the following command:
>>
>> select * form mytable
>>
>> Notice the Intentional misspelling of FROM. This issued an error of
>> severity 15, but I got no alert, and the alert count in the SSMS UI
>> hasn't incremented.
>>
>> I've confirmed that SQL SErver Agent is running. There is nothing useful
>> in the event viewer for the database server, and SQL Server agent runs
>> under the same domain user that sql server runs under. I've also
>> confirmed that the event log is running, and nothing useful appears in
>> the Error Logs in SSMS.
>>
>> What else should I check?
>>
>> Thanks,
>>
>> JRF
>>

>



  Réponse avec citation
Vieux 30/08/2008, 08h56   #4
Tibor Karaszi
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: ALerts not working

> what then is the purpose behind setting alerts for severity 15 if they dont get logged?

In general, severity doesn't say much about the ... severity of the error/exception. So there are
messages with a low severity which are logged, and vice versa. As for level 15, it happens that this
level has no messages that are logged. Consider submitting at connect if you want this level to not
to be shown in the drop-down. Here's a query to show all errors which are logged (20 and higher are
logged regardless of is_event_logged column):

SELECT *
FROM sys.messages
WHERE (is_event_logged = 1 OR severity > 20)
AND language_id = 1033
ORDER BY severity, message_id

--
Tibor Karaszi, SQL Server MVP
http://www.karaszi.com/sqlserver/default.asp
http://sqlblog.com/blogs/tibor_karaszi


"Jason Folkens" <msnews@folkens.org> wrote in message news:u4uhFjkCJHA.2480@TK2MSFTNGP02.phx.gbl...
> what then is the purpose behind setting alerts for severity 15 if they dont get logged?
>
> Is it effectively broken and therefore should probably be removed from the dropdown list?
>
> Or can it be activated through setting a trace flag?
>
>
>
> "Tibor Karaszi" <tibor_please.no.email_karaszi@hotmail.nomail.co m> wrote in message
> news:%238KJdHiCJHA.3268@TK2MSFTNGP03.phx.gbl...
>> Most messages *do not* end up in eventlog/errorlog. Those cannot be caught by an alert (since
>> Eventlog is what Agent polls). This is the way it is, quite simply. In 2000 and earlier you could
>> configure whether an error should go to eventlog (sp_altermessage) but that possibility isn't
>> available as of 2005.
>>
>> --
>> Tibor Karaszi, SQL Server MVP
>> http://www.karaszi.com/sqlserver/default.asp
>> http://sqlblog.com/blogs/tibor_karaszi
>>
>>
>> "Jason Folkens" <msnews@folkens.org> wrote in message
>> news:%23RXCakhCJHA.2476@TK2MSFTNGP06.phx.gbl...
>>> I'm running SQL SErver 2005. I've created an SQL Alert for events of severity 15 (syntax
>>> errors).
>>>
>>> I created an Operator with my name. I added my email and my net send address to the operator.
>>>
>>> I assigned that operator to the Alert.
>>>
>>> I then went into management studio and issued the following command:
>>>
>>> select * form mytable
>>>
>>> Notice the Intentional misspelling of FROM. This issued an error of severity 15, but I got no
>>> alert, and the alert count in the SSMS UI hasn't incremented.
>>>
>>> I've confirmed that SQL SErver Agent is running. There is nothing useful in the event viewer
>>> for the database server, and SQL Server agent runs under the same domain user that sql server
>>> runs under. I've also confirmed that the event log is running, and nothing useful appears in
>>> the Error Logs in SSMS.
>>>
>>> What else should I check?
>>>
>>> Thanks,
>>>
>>> JRF
>>>

>>

>
>


  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 08h51.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières ©2000-2008
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,13807 seconds with 12 queries