Partager via


SqlScriptGenerator.GenerateScript Method

Definition

Overloads

GenerateScript(TSqlFragment, TextWriter)

Generates text representing the specified script fragment

GenerateScript(TSqlFragment, String)

Populates the writer with a script with the scriptFragment.

GenerateScript(TSqlFragment, String, IList<ParseError>)

Populates the writer with a script with the scriptFragment.

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

The fragment of script to generate tokens for

writer
TextWriter

A text writer to write the text to

Applies to

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 * string -> unit
Public Sub GenerateScript (scriptFragment As TSqlFragment, ByRef script As String)

Parameters

scriptFragment
TSqlFragment

The script fragment to generate script for.

script
String

The generated script.

Applies to

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 * string * IList -> unit
Public Sub GenerateScript (scriptFragment As TSqlFragment, ByRef script As String, ByRef versioningErrors As IList(Of ParseError))

Parameters

scriptFragment
TSqlFragment

The script fragment to generate script for.

script
String

The generated script.

versioningErrors
IList<ParseError>

The engine type-specific error list.

Applies to