Skip to content

Latest commit

 

History

History
98 lines (85 loc) · 3.89 KB

File metadata and controls

98 lines (85 loc) · 3.89 KB
title Trace Element (ASSL) | Microsoft Docs
ms.custom
ms.date 03/06/2017
ms.prod sql-server-2016
ms.reviewer
ms.suite
ms.technology
analysis-services
docset-sql-devref
ms.tgt_pltfrm
ms.topic reference
apiname
Trace Element
apilocation
apitype Schema
applies_to
SQL Server 2016 Preview
f1_keywords
Trace
helpviewer_keywords
Trace element
ms.assetid dda9136a-a9c1-44a1-b8d3-b0ec4dc65c87
caps.latest.revision 36
author Minewiskan
ms.author owend
manager erikre

Trace Element (ASSL)

Defines a trace that can be queried.

Syntax

  
      Profiler syntax  
<Traces>  
   <Trace>  
      <Name>...</Name>  
      <ID>...</ID>  
      <Description>...</Description>  
      <CreatedTimestamp>...</CreatedTimestamp>  
      <LastSchemaUpdate>...</LastSchemaUpdate>  
      <LogFileName>...</LogFileName>  
      <LogFileAppend>...</LogFileAppend>  
      <LogFileSize>...</LogFileSize>  
      <Audit>...</Audit>  
      <LogFileRollover>...</LogFileRollover>  
      <AutoRestart>...</AutoRestart>  
      <StopTime>...</StopTime>  
      <Filter>...</Filter>  
      <Events>...</Events>  
      <Annotations>...</Annotations>  
   </Trace>  
</Traces>  
  
      Extended Events syntax  
<Traces>  
   <Trace>  
      <Name>...</Name>  
      <ID>...</ID>  
      <Description>...</Description>  
      <CreatedTimestamp>...</CreatedTimestamp>  
      <LastSchemaUpdate>...</LastSchemaUpdate> 
      <AutoRestart>...</AutoRestart>
      <XEvent>...</XEvent>  
      <Annotations>...</Annotations>  
   </Trace>  
</Traces>  

Element Characteristics

Characteristic Description
Data type and length None
Default value None
Cardinality 0-n: Optional element that can occur more than once.

Element Relationships

Relationship Element
Parent elements Traces
Child elements Annotations, Audit, AutoRestart, CreatedTimestamp, Description, Events, Filter, ID, LastSchemaUpdate, LogFileAppend, LogFileName, LogFileRollover, LogFileSize, Name, StopTime

Remarks

The corresponding element in the Analysis Management Objects (AMO) object model is xref:Microsoft.AnalysisServices.Trace.

See Also

Server Element (ASSL)
Objects (ASSL)