TraceReaderWriter.Write Method

Writes the trace to the trace file or the trace table.

Namespace:  Microsoft.SqlServer.Management.Trace
Assembly:  Microsoft.SqlServer.ConnectionInfoExtended (in Microsoft.SqlServer.ConnectionInfoExtended.dll)

Syntax

'Declaration
Public Function Write As Boolean
'Usage
Dim instance As TraceReaderWriter 
Dim returnValue As Boolean 

returnValue = instance.Write()
public bool Write()
public:
virtual bool Write() sealed
abstract Write : unit -> bool  
override Write : unit -> bool
public final function Write() : boolean

Return Value

Type: System.Boolean
A Boolean value that specifies whether the trace was written successfully to the trace file or trace table.If True, the trace was written successfully.If False, the trace was not written successfully.

Implements

ITraceDataWriter.Write()

Examples

Readme_Tracer

See Also

Reference

TraceReaderWriter Class

Microsoft.SqlServer.Management.Trace Namespace

Other Resources

Trace Flags (Transact-SQL)

SQL Server Profiler Templates and Permissions