CREATE EVENT SESSION query_performance ON SERVER
ADD EVENT sqlserver.sp_statement_completed(
ACTION(sqlserver.query_hash)
WHERE sqlserver.database_id = 13 AND sqlserver.query_hash <> 0),
ADD EVENT sqlserver.sql_statement_completed(
ACTION(sqlserver.query_hash)
WHERE sqlserver.database_id = 13 AND sqlserver.query_hash <> 0)
ADD TARGET package0.event_file(SET filename = N'C:\Temp\Traces\query_performance.xel');