|
|||||||||||||||||||||||||||||||||||||||||
|
|||||||||||||||||||||||||||||||||||||||||
|
Announcements
Chapters
Services
Feature Zones
|
Note: This is an unedited contribution. If this article is inappropriate,
needs attention or copies someone else's work without reference then please
Report This Article
IntroductionThis article discusses the details about SQL Server Alerts. BackgroundIt is not possible for DBAs to check continuously for every special condition. There may be special conditions in which DBA wants to do some automatic management or get notified. SQL Server has feature called ALERTS to cope with this requirement. Types of Alerts:There are three types of alerts:
SQL Server Event Alerts:These errors may be defined for specific Error Numbers or Severity levels. There are 25 different severity levels for alert. The details are as follows:
These alerts may be defined specifically for any particular database or generically for all the databases. ![]() SQL Server Performance Condition AlertsThese are SQL Server alerts which
are generated because of some performance condition of the instance. There are
various objects for which these alerts may be generated. They are as follows:
There are various different counters associated with every objects specified above. E.g. a database alert may be generated when the usage of log file becomes equal to any specific values. Basically, it may be checked for each counter to become equal to, greater than or less than any specific value.
WMI (Windows Management Instrumentation) Alert:As you know WMI Scripts are written
to automate administrative tasks on Windows based environment about management
of data. WMI query may also be specified to define alert. For these types of
alert, namespace and WMI script query is specified. Response of AlertAs a result of the alert two types
of responses may be generated. Remember
that both of these responses are not mutually exclusive i.e. any or both of the
two responses may be generated as a result of the alert:
T-SQL SupportNow you must be wondering whether any T-SQL support is available to define these alerts or not. So the answer is YES. There are following stored procedures available: msdb.dbo.sp_add_alert This stored procedure is used to define any new alert. Note: It must be remembered that DBA has the option to enable / disable any or all of the alerts.
|
||||||||||||||||||||||||||||||||||||||||