bin/XEtemplates/Profiler TSQL Replay.xml

<event_sessions xmlns="http://schemas.microsoft.com/sqlserver/2008/07/extendedeventconfig">
  <event_session name="Profiler TSQL Replay" maxMemory="4" eventRetentionMode="allowSingleEventLoss" trackCausality="true" dispatchLatency="30" maxEventSize="0" memoryPartitionMode="none">
    <templateCategory>
      <!-- _locID_text="templateCategory" _locComment = "" -->Profiler Equivalents</templateCategory>
    <templateName>
      <!-- _locID_text = "templateName" _locComment = "" -->Profiler TSQL Replay</templateName>
    <templateDescription>
      <!-- _locID_text = "templateDescription" _locComment = "" -->Matches the 'TSQL_Replay' template in Profiler. Use to perform iterative tuning, such as benchmark testing.</templateDescription>
    <event package="sqlserver" name="attention">
      <action package="sqlserver" name="client_app_name" />
      <action package="sqlserver" name="client_pid" />
      <action package="sqlserver" name="client_hostname" />
      <action package="sqlserver" name="database_id" />
      <action package="sqlserver" name="database_name" />
      <action package="package0" name="event_sequence" />
      <action package="sqlserver" name="is_system" />
      <action package="sqlserver" name="nt_username" />
      <action package="sqlserver" name="request_id" />
      <action package="sqlserver" name="server_principal_name" />
      <action package="sqlserver" name="server_instance_name" />
      <action package="sqlserver" name="session_id" />
    </event>
    <event package="sqlserver" name="cursor_close">
      <action package="sqlserver" name="client_app_name" />
      <action package="sqlserver" name="client_pid" />
      <action package="sqlserver" name="client_hostname" />
      <action package="sqlserver" name="database_id" />
      <action package="sqlserver" name="database_name" />
      <action package="package0" name="event_sequence" />
      <action package="sqlserver" name="is_system" />
      <action package="sqlserver" name="nt_username" />
      <action package="sqlserver" name="request_id" />
      <action package="sqlserver" name="server_principal_name" />
      <action package="sqlserver" name="server_instance_name" />
      <action package="sqlserver" name="session_id" />
    </event>
    <event package="sqlserver" name="cursor_execute">
      <action package="sqlserver" name="client_app_name" />
      <action package="sqlserver" name="client_pid" />
      <action package="sqlserver" name="client_hostname" />
      <action package="sqlserver" name="database_id" />
      <action package="sqlserver" name="database_name" />
      <action package="package0" name="event_sequence" />
      <action package="sqlserver" name="is_system" />
      <action package="sqlserver" name="nt_username" />
      <action package="sqlserver" name="request_id" />
      <action package="sqlserver" name="server_principal_name" />
      <action package="sqlserver" name="server_instance_name" />
      <action package="sqlserver" name="session_id" />
    </event>
    <event package="sqlserver" name="cursor_open">
      <action package="sqlserver" name="client_app_name" />
      <action package="sqlserver" name="client_pid" />
      <action package="sqlserver" name="client_hostname" />
      <action package="sqlserver" name="database_id" />
      <action package="sqlserver" name="database_name" />
      <action package="package0" name="event_sequence" />
      <action package="sqlserver" name="is_system" />
      <action package="sqlserver" name="nt_username" />
      <action package="sqlserver" name="request_id" />
      <action package="sqlserver" name="server_principal_name" />
      <action package="sqlserver" name="server_instance_name" />
      <action package="sqlserver" name="session_id" />
    </event>
    <event package="sqlserver" name="cursor_prepare">
      <action package="sqlserver" name="client_app_name" />
      <action package="sqlserver" name="client_pid" />
      <action package="sqlserver" name="client_hostname" />
      <action package="sqlserver" name="database_id" />
      <action package="sqlserver" name="database_name" />
      <action package="package0" name="event_sequence" />
      <action package="sqlserver" name="is_system" />
      <action package="sqlserver" name="nt_username" />
      <action package="sqlserver" name="request_id" />
      <action package="sqlserver" name="server_principal_name" />
      <action package="sqlserver" name="server_instance_name" />
      <action package="sqlserver" name="session_id" />
    </event>
    <event package="sqlserver" name="cursor_unprepare">
      <action package="sqlserver" name="client_app_name" />
      <action package="sqlserver" name="client_pid" />
      <action package="sqlserver" name="client_hostname" />
      <action package="sqlserver" name="database_id" />
      <action package="sqlserver" name="database_name" />
      <action package="package0" name="event_sequence" />
      <action package="sqlserver" name="is_system" />
      <action package="sqlserver" name="nt_username" />
      <action package="sqlserver" name="request_id" />
      <action package="sqlserver" name="server_principal_name" />
      <action package="sqlserver" name="server_instance_name" />
      <action package="sqlserver" name="session_id" />
    </event>
    <event package="sqlserver" name="exec_prepared_sql">
      <action package="sqlserver" name="client_app_name" />
      <action package="sqlserver" name="client_pid" />
      <action package="sqlserver" name="client_hostname" />
      <action package="sqlserver" name="database_id" />
      <action package="sqlserver" name="database_name" />
      <action package="package0" name="event_sequence" />
      <action package="sqlserver" name="is_system" />
      <action package="sqlserver" name="nt_username" />
      <action package="sqlserver" name="request_id" />
      <action package="sqlserver" name="server_principal_name" />
      <action package="sqlserver" name="server_instance_name" />
      <action package="sqlserver" name="session_id" />
    </event>
    <event package="sqlserver" name="existing_connection">
      <action package="sqlserver" name="client_app_name" />
      <action package="sqlserver" name="client_pid" />
      <action package="sqlserver" name="client_hostname" />
      <action package="sqlserver" name="database_id" />
      <action package="sqlserver" name="database_name" />
      <action package="package0" name="event_sequence" />
      <action package="sqlserver" name="is_system" />
      <action package="sqlserver" name="nt_username" />
      <action package="sqlserver" name="request_id" />
      <action package="sqlserver" name="server_principal_name" />
      <action package="sqlserver" name="server_instance_name" />
      <action package="sqlserver" name="session_id" />
    </event>
    <event package="sqlserver" name="login">
      <action package="sqlserver" name="client_app_name" />
      <action package="sqlserver" name="client_pid" />
      <action package="sqlserver" name="client_hostname" />
      <action package="sqlserver" name="database_id" />
      <action package="sqlserver" name="database_name" />
      <action package="package0" name="event_sequence" />
      <action package="sqlserver" name="is_system" />
      <action package="sqlserver" name="nt_username" />
      <action package="sqlserver" name="request_id" />
      <action package="sqlserver" name="server_principal_name" />
      <action package="sqlserver" name="server_instance_name" />
      <action package="sqlserver" name="session_id" />
      <parameter name="collect_options_text" value="1" />
    </event>
    <event package="sqlserver" name="logout">
      <action package="sqlserver" name="client_app_name" />
      <action package="sqlserver" name="client_pid" />
      <action package="sqlserver" name="client_hostname" />
      <action package="sqlserver" name="database_id" />
      <action package="sqlserver" name="database_name" />
      <action package="package0" name="event_sequence" />
      <action package="sqlserver" name="is_system" />
      <action package="sqlserver" name="nt_username" />
      <action package="sqlserver" name="request_id" />
      <action package="sqlserver" name="server_principal_name" />
      <action package="sqlserver" name="server_instance_name" />
      <action package="sqlserver" name="session_id" />
    </event>
    <event package="sqlserver" name="prepare_sql">
      <action package="sqlserver" name="client_app_name" />
      <action package="sqlserver" name="client_pid" />
      <action package="sqlserver" name="client_hostname" />
      <action package="sqlserver" name="database_id" />
      <action package="sqlserver" name="database_name" />
      <action package="package0" name="event_sequence" />
      <action package="sqlserver" name="is_system" />
      <action package="sqlserver" name="nt_username" />
      <action package="sqlserver" name="request_id" />
      <action package="sqlserver" name="server_principal_name" />
      <action package="sqlserver" name="server_instance_name" />
      <action package="sqlserver" name="session_id" />
    </event>
    <event package="sqlserver" name="rpc_completed">
      <action package="sqlserver" name="client_app_name" />
      <action package="sqlserver" name="client_pid" />
      <action package="sqlserver" name="client_hostname" />
      <action package="sqlserver" name="database_id" />
      <action package="sqlserver" name="database_name" />
      <action package="package0" name="event_sequence" />
      <action package="sqlserver" name="is_system" />
      <action package="sqlserver" name="nt_username" />
      <action package="sqlserver" name="request_id" />
      <action package="sqlserver" name="server_principal_name" />
      <action package="sqlserver" name="server_instance_name" />
      <action package="sqlserver" name="session_id" />
    </event>
    <event package="sqlserver" name="rpc_starting">
      <action package="sqlserver" name="client_app_name" />
      <action package="sqlserver" name="client_pid" />
      <action package="sqlserver" name="client_hostname" />
      <action package="sqlserver" name="database_id" />
      <action package="sqlserver" name="database_name" />
      <action package="package0" name="event_sequence" />
      <action package="sqlserver" name="is_system" />
      <action package="sqlserver" name="nt_username" />
      <action package="sqlserver" name="request_id" />
      <action package="sqlserver" name="server_principal_name" />
      <action package="sqlserver" name="server_instance_name" />
      <action package="sqlserver" name="session_id" />
    </event>
    <event package="sqlserver" name="sql_batch_completed">
      <action package="sqlserver" name="client_app_name" />
      <action package="sqlserver" name="client_pid" />
      <action package="sqlserver" name="client_hostname" />
      <action package="sqlserver" name="database_id" />
      <action package="sqlserver" name="database_name" />
      <action package="package0" name="event_sequence" />
      <action package="sqlserver" name="is_system" />
      <action package="sqlserver" name="nt_username" />
      <action package="sqlserver" name="request_id" />
      <action package="sqlserver" name="server_principal_name" />
      <action package="sqlserver" name="server_instance_name" />
      <action package="sqlserver" name="session_id" />
    </event>
    <event package="sqlserver" name="sql_batch_starting">
      <action package="sqlserver" name="client_app_name" />
      <action package="sqlserver" name="client_pid" />
      <action package="sqlserver" name="client_hostname" />
      <action package="sqlserver" name="database_id" />
      <action package="sqlserver" name="database_name" />
      <action package="package0" name="event_sequence" />
      <action package="sqlserver" name="is_system" />
      <action package="sqlserver" name="nt_username" />
      <action package="sqlserver" name="request_id" />
      <action package="sqlserver" name="server_principal_name" />
      <action package="sqlserver" name="server_instance_name" />
      <action package="sqlserver" name="session_id" />
    </event>
  </event_session>
</event_sessions>