Server.SetTraceFlag Method (Int32, Boolean)

 

Sets a trace flag.

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

public void SetTraceFlag(
	int number,
	bool isOn
)

Parameters

number
Type: System.Int32

The number of trace flag.

isOn
Type: System.Boolean

Indicates whether the trace is on.

Return to top
Show: