SqlScriptGenerator.GenerateScript SqlScriptGenerator.GenerateScript SqlScriptGenerator.GenerateScript Method

Definition

Overloads

GenerateScript(TSqlFragment, TextWriter) GenerateScript(TSqlFragment, TextWriter) GenerateScript(TSqlFragment, TextWriter)

Generates text representing the specified script fragment

GenerateScript(TSqlFragment, String) GenerateScript(TSqlFragment, String) GenerateScript(TSqlFragment, String)

Populates the writer with a script with the scriptFragment.

GenerateScript(TSqlFragment, String, IList<ParseError>) GenerateScript(TSqlFragment, String, IList<ParseError>) GenerateScript(TSqlFragment, String, IList<ParseError>)

Populates the writer with a script with the scriptFragment.

GenerateScript(TSqlFragment, TextWriter) GenerateScript(TSqlFragment, TextWriter) GenerateScript(TSqlFragment, TextWriter)

Generates text representing the specified script fragment

public void GenerateScript (Microsoft.SqlServer.TransactSql.ScriptDom.TSqlFragment scriptFragment, System.IO.TextWriter writer);
member this.GenerateScript : Microsoft.SqlServer.TransactSql.ScriptDom.TSqlFragment * System.IO.TextWriter -> unit
Public Sub GenerateScript (scriptFragment As TSqlFragment, writer As TextWriter)

Parameters

scriptFragment
TSqlFragment TSqlFragment TSqlFragment

The fragment of script to generate tokens for

writer
TextWriter TextWriter TextWriter

A text writer to write the text to

GenerateScript(TSqlFragment, String) GenerateScript(TSqlFragment, String) GenerateScript(TSqlFragment, String)

Populates the writer with a script with the scriptFragment.

public void GenerateScript (Microsoft.SqlServer.TransactSql.ScriptDom.TSqlFragment scriptFragment, out string script);
member this.GenerateScript : Microsoft.SqlServer.TransactSql.ScriptDom.TSqlFragment *  -> unit
Public Sub GenerateScript (scriptFragment As TSqlFragment, ByRef script As String)

Parameters

scriptFragment
TSqlFragment TSqlFragment TSqlFragment

The script fragment to generate script for.

script
String String String

The generated script.

GenerateScript(TSqlFragment, String, IList<ParseError>) GenerateScript(TSqlFragment, String, IList<ParseError>) GenerateScript(TSqlFragment, String, IList<ParseError>)

Populates the writer with a script with the scriptFragment.

public void GenerateScript (Microsoft.SqlServer.TransactSql.ScriptDom.TSqlFragment scriptFragment, out string script, out System.Collections.Generic.IList<Microsoft.SqlServer.TransactSql.ScriptDom.ParseError> versioningErrors);
member this.GenerateScript : Microsoft.SqlServer.TransactSql.ScriptDom.TSqlFragment *  *  -> unit
Public Sub GenerateScript (scriptFragment As TSqlFragment, ByRef script As String, ByRef versioningErrors As IList(Of ParseError))

Parameters

scriptFragment
TSqlFragment TSqlFragment TSqlFragment

The script fragment to generate script for.

script
String String String

The generated script.

versioningErrors
IList<ParseError>

The engine type-specific error list.

Applies to