Presentation is loading. Please wait.

Presentation is loading. Please wait.

SQL Power Tools - Enhance Your Effectiveness with Extended Events boB ‘The Tool Man’ Taylor MCA, MCM, MCSD.Net, MCT Microsoft Corporation DBI410.

Similar presentations


Presentation on theme: "SQL Power Tools - Enhance Your Effectiveness with Extended Events boB ‘The Tool Man’ Taylor MCA, MCM, MCSD.Net, MCT Microsoft Corporation DBI410."— Presentation transcript:

1 SQL Power Tools - Enhance Your Effectiveness with Extended Events boB ‘The Tool Man’ Taylor MCA, MCM, MCSD.Net, MCT Microsoft Corporation DBI410

2 Tweeting? Use #TechEd and #DBI410 hash tags

3

4 What do they have in common? They all use SQL Server Trace

5 Now what do you do?

6

7

8

9 NameDescription package0 Default package. Contains all standard types, maps, compare operators, actions and targets sqlosExtended events for SQL Operating System XeDkPkgExtended events for SQLDK binary (SQLDK.dll now loads package0 and sqlos) sqlserverExtended events for Microsoft SQL Server SecAuditSecurity Audit Events ucsExtended events for Unified Communications Stack sqlclrExtended events for SQL CLR filestreamExtended events for SQL Server FILESTREAM and FileTable sqlserverExtended events for Microsoft SQL Server

10

11

12 Viewing a real-time snapshot of system_health SELECT CAST(xet.target_data as xml) FROM sys.dm_xe_session_targets xet JOIN sys.dm_xe_sessions xe ON (xe.address = xet.event_session_address) WHERE xe.name = 'system_health'

13 demo boB ‘The Tool Man’ Taylor MCA, MCM, MCSD.Net, MCT Microsoft Corporation Extended Events Profiler

14

15

16 demo boB ‘The Tool Man’ Taylor MCA, MCM, MCSD.Net, MCT Microsoft Corporation RML Type Reporting

17

18 CREATE EVENT SESSION [SampledQueries] ON SERVER ADD EVENT sqlserver.error_reported( ACTION(sqlserver.client_app_name,sqlserver.database_id, sqlserver.query_hash,sqlserver.session_id) WHERE ((([package0].[divides_by_uint64]([sqlserver].[session_id],(5))) AND ([package0].[greater_than_uint64]([sqlserver].[database_id],(4)))) AND ([package0].[equal_boolean]([sqlserver].[is_system],(0))))), ADD EVENT sqlserver.sql_batch_completed( ACTION(sqlserver.client_app_name,sqlserver.database_id, sqlserver.query_hash,sqlserver.session_id) WHERE ((([package0].[divides_by_uint64]([sqlserver].[session_id],(5))) AND ([package0].[greater_than_uint64]([sqlserver].[database_id],(4)))) AND ([package0].[equal_boolean]([sqlserver].[is_system],(0))))) ADD TARGET package0.ring_buffer WITH (MAX_MEMORY=4096 KB,EVENT_RETENTION_MODE=ALLOW_SINGLE_EVENT_LOSS, MAX_DISPATCH_LATENCY=30 SECONDS,MAX_EVENT_SIZE=0 KB, MEMORY_PARTITION_MODE=NONE,TRACK_CAUSALITY=ON,STARTUP_STATE=OFF) GO

19

20 announcing http://SQLPie.CodePlex.com SQLPIE on CodePlex

21 demo boB ‘The Tool Man’ Taylor MCA, MCM, MCSD.Net, MCT Microsoft Corporation Profiler Into Events (PIE)

22

23

24

25 Connect. Share. Discuss. http://northamerica.msteched.com Learning Microsoft Certification & Training Resources www.microsoft.com/learning TechNet Resources for IT Professionals http://microsoft.com/technet Resources for Developers http://microsoft.com/msdn

26 Required Slide Complete an evaluation on CommNet and enter to win!

27 Scan the Tag to evaluate this session now on myTechEd Mobile

28

29


Download ppt "SQL Power Tools - Enhance Your Effectiveness with Extended Events boB ‘The Tool Man’ Taylor MCA, MCM, MCSD.Net, MCT Microsoft Corporation DBI410."

Similar presentations


Ads by Google