SqlScriptGenerator.GenerateScript 方法

定義

多載

名稱 Description
GenerateScript(TSqlFragment, TextWriter)

產生代表指定文字片段的文字

GenerateScript(TSqlFragment, String)

會用 scriptFragment 填充寫手腳本。

GenerateScript(TSqlFragment, String, IList<ParseError>)

會用 scriptFragment 填充寫手腳本。

GenerateScript(TSqlFragment, TextWriter)

產生代表指定文字片段的文字

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)

參數

scriptFragment
TSqlFragment

產生 標記的腳本片段

writer
TextWriter

一個用來撰寫文字的文字編輯器

適用於

GenerateScript(TSqlFragment, String)

會用 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)

參數

scriptFragment
TSqlFragment

要產生腳本的腳本片段。

script
String

生成的腳本。

適用於

GenerateScript(TSqlFragment, String, IList<ParseError>)

會用 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))

參數

scriptFragment
TSqlFragment

要產生腳本的腳本片段。

script
String

生成的腳本。

versioningErrors
IList<ParseError>

針對引擎類型的錯誤清單。

適用於