TSqlParser.TryParseTriggerModule Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.