bin/XEtemplates/Profiler TSQL.xml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<event_sessions xmlns="http://schemas.microsoft.com/sqlserver/2008/07/extendedeventconfig">
  <event_session name="Profiler TSQL" maxMemory="8" eventRetentionMode="allowSingleEventLoss" trackCausality="true" dispatchLatency="5" maxEventSize="0" memoryPartitionMode="perCpu">
    <templateCategory>
      <!-- _locID_text="templateCategory" _locComment = "" -->Profiler Equivalents</templateCategory>
    <templateName>
      <!-- _locID_text = "templateName" _locComment = "" -->Profiler TSQL</templateName>
    <templateDescription>
      <!-- _locID_text = "templateDescription" _locComment = "" -->Matches the 'TSQL' template in Profiler. Captures all Transact-SQL statements that are submitted to SQL Server by clients and the time issued. Use to debug client applications.</templateDescription>
    <event package="sqlserver" name="login">
      <action package="package0" name="event_sequence" />
      <action package="sqlserver" name="session_id" />
      <parameter name="collect_options_text" value="1" />
    </event>
    <event package="sqlserver" name="logout">
      <action package="package0" name="event_sequence" />
      <action package="sqlserver" name="session_id" />
    </event>
    <event package="sqlserver" name="existing_connection">
      <action package="package0" name="event_sequence" />
      <action package="sqlserver" name="session_id" />
    </event>
    <event package="sqlserver" name="rpc_starting">
      <action package="package0" name="event_sequence" />
      <action package="sqlserver" name="session_id" />
      <predicate>
        <leaf>
          <comparator name="equal_boolean" package="package0"></comparator>
          <global name="is_system" package="sqlserver"></global>
          <value>false</value>
        </leaf>
      </predicate>
    </event>
    <event package="sqlserver" name="sql_batch_starting">
      <action package="package0" name="event_sequence" />
      <action package="sqlserver" name="session_id" />
      <predicate>
        <leaf>
          <comparator name="equal_boolean" package="package0"></comparator>
          <global name="is_system" package="sqlserver"></global>
          <value>false</value>
        </leaf>
      </predicate>
    </event>
  </event_session>
</event_sessions>