ScriptingOptions.Triggers Property

Gets or sets the Boolean property value that specifies whether to include the definition for triggers in the generated script.

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

public bool Triggers { get; set; }

Property Value

Type: System.Boolean
A Boolean value that specifies whether to include the definition of triggers in the generated script.
If True, the trigger definitions are included in the script. Otherwise, False (default).

This option applies only when scripting a SQL Server table.

Community Additions

ADD
Show: