Presentation is loading. Please wait.

Presentation is loading. Please wait.

Hey PowerShell Eventing, Can You Notify Me ? Laerte

Similar presentations


Presentation on theme: "Hey PowerShell Eventing, Can You Notify Me ? Laerte"— Presentation transcript:

1 Hey PowerShell Eventing, Can You Notify Me ? Laerte

2 Brazil

3 My Skills I Know a Bit of PowerShell (3 years) I DO like to play with SQL Server (12 years) BETTER COFFE MAKER FROM BRAZIL (30 years)

4 Notification System Your Bank send a SMS about a transaction Your car warning you when something wrong happens Your body alerts you when something is not right

5 DARKNESS

6 WMI WMI is an acronym for Windows Management Instrumentation – Registry, File and Disk systems, Services and processes, Printers,Networking, IIS, Performance Counters WMI Provider For Server Events – The WMI Provider for Server Events lets you use the Windows Management Instrumentation (WMI) to monitor events in SQL Server.

7 Windows Management Instrumentation Query Language SQL ANSI with WMI-Specific Extensions SELECT { event_property [,...n ] | * } FROM event_type WHERE where_condition EVENT QUERY LANGUAGE SELECT FROM WHERE ISA ' ' "select * from __InstanceModificationEvent within 5 where TargetInstance ISA 'Win32_Service' and TargetInstance.Name='MSSQLSERVER' and TargetInstance.State='Stopped

Similar presentations


Ads by Google