Share via


TSqlParser.TryParseTriggerModule Method

Definition

Parses the input script to return the trigger name and trigger target name of the first create/alter trigger statement.

public bool TryParseTriggerModule (System.IO.TextReader input, out Microsoft.SqlServer.TransactSql.ScriptDom.SchemaObjectName triggerName, out Microsoft.SqlServer.TransactSql.ScriptDom.SchemaObjectName targetName);
member this.TryParseTriggerModule : System.IO.TextReader * SchemaObjectName * SchemaObjectName -> bool
Public Function TryParseTriggerModule (input As TextReader, ByRef triggerName As SchemaObjectName, ByRef targetName As SchemaObjectName) As Boolean

Parameters

input
TextReader

The input script

triggerName
SchemaObjectName

The output trigger object name. Null if not found.

targetName
SchemaObjectName

The output trigger target object name. Null if not found.

Returns

True if a trigger target is found, else false.

Applies to