共用方式為


ITraceDataWriter.Write 方法

Writes the SQL Trace.

命名空間:  Microsoft.SqlServer.Management.Trace
組件:  Microsoft.SqlServer.ConnectionInfoExtended (在 Microsoft.SqlServer.ConnectionInfoExtended.dll 中)

語法

'宣告
Function Write As Boolean
'用途
Dim instance As ITraceDataWriter 
Dim returnValue As Boolean 

returnValue = instance.Write()
bool Write()
bool Write()
abstract Write : unit -> bool
function Write() : boolean

傳回值

型別:System.Boolean
A Boolean value that specifies whether the write operation was successful.If True, the write operation succeeded;otherwise, False.

範例

Readme_Tracer

請參閱

參考

ITraceDataWriter 介面

Microsoft.SqlServer.Management.Trace 命名空間

其他資源

追蹤旗標 (Transact-SQL)

SQL Server Profiler 範本和權限