17.07.2015 Views

Download eBook (PDF) - Red Gate Software

Download eBook (PDF) - Red Gate Software

Download eBook (PDF) - Red Gate Software

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

9 – Honeycombing a Databaseavailable for this argument are noted to be removed in later versions ofSQL Server and should be avoided.• Database Name – the database where the event message will occur.• Event Description Keyword – the pattern of characters that willoccur in an event that will trigger a notification. This is necessary onlywhen filtering events.• Job ID – the id reference to the job that will be launched in responseto the event. This is necessary only when launching a job in responseto an event.• Job Name – the textual reference to the job that will be launched inresponse to the event. This is necessary only when launching a job inresponse to an event.• Raise SNMP Trap – indicates whether a Simple NetworkManagement Protocol (SNMP) trap is raised in response to the event.This is optional and the default value is 0.• Performance Condition – defines the performance conditionsthat will trigger a notification. This is necessary only when usingperformance events to raise the Alert.• Category Name – the category of the Alert. This is optional.• WMI Namespace – the Windows Management Instrumentation(WMI) namespace that is referenced by the WMI query. This isnecessary only when using WMI events to raise the Alert.• WMI Query – the query that identifies a WMI event that will triggerthe alert. This is necessary only when using WMI events to raise theAlert.Listing 9-7 creates a "Honeycomb Alert" in the msdb database.USE msdb;GOEXEC msdb.dbo.sp_add_alert @name=N'Honeycomb Alert',@message_id=33205,@severity=0,@enabled=1,@delay_between_responses=0,@include_event_description_in=1,@database_name=N'HomeLending',@notification_message=N'Honeycomb Alert';GOListing 9-7: Creating the Honeycomb Alert.197

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!