Export (0) Print
Expand All
Expand Minimize

Server.SetTraceFlag Method

Sets a trace flag.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

'Declaration
Public Sub SetTraceFlag ( _
	number As Integer, _
	isOn As Boolean _
)
'Usage
Dim instance As Server 
Dim number As Integer 
Dim isOn As Boolean

instance.SetTraceFlag(number, isOn)

Parameters

number
Type: Int32
The number of trace flag.
isOn
Type: Boolean
Indicates whether the trace is on.
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft