SqlScriptGenerator.GenerateScript 方法 (TSqlFragment, TextWriter)
Generates a text representing the specified script fragment.
命名空間: Microsoft.SqlServer.TransactSql.ScriptDom
組件: Microsoft.SqlServer.TransactSql.ScriptDom (在 Microsoft.SqlServer.TransactSql.ScriptDom.dll 中)
語法
'宣告
Public Sub GenerateScript ( _
scriptFragment As TSqlFragment, _
writer As TextWriter _
)
'用途
Dim instance As SqlScriptGenerator
Dim scriptFragment As TSqlFragment
Dim writer As TextWriter
instance.GenerateScript(scriptFragment, _
writer)
public void GenerateScript(
TSqlFragment scriptFragment,
TextWriter writer
)
public:
void GenerateScript(
TSqlFragment^ scriptFragment,
TextWriter^ writer
)
member GenerateScript :
scriptFragment:TSqlFragment *
writer:TextWriter -> unit
public function GenerateScript(
scriptFragment : TSqlFragment,
writer : TextWriter
)
參數
- scriptFragment
型別:Microsoft.SqlServer.TransactSql.ScriptDom.TSqlFragment
The fragment of script to generate tokens for.
- writer
型別:System.IO.TextWriter
A text writer to write the text to.