DdlTriggerBase.ScriptHeader Method (Boolean)


Generates a Transact-SQL script that can be used to re-create the database data definition language (DDL) trigger header as specified by the script options.

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

public string ScriptHeader(
	bool forAlter


Type: System.Boolean

A Boolean value that specifies whether the header can be modified.

Return Value

Type: System.String

A T:System.Specialized.StringCollection system object value that contains a list of Transact-SQL command batch statements that defines the database DDL trigger header.

Returns True if the header information can be modified, or

False if the header information cannot be modified.

Return to top