Delen via


SqlScriptGenerator.GenerateScript Method (TSqlFragment, String%)

Generates a text representing the specified script fragment.

Namespace:  Microsoft.SqlServer.TransactSql.ScriptDom
Assembly:  Microsoft.SqlServer.TransactSql.ScriptDom (in Microsoft.SqlServer.TransactSql.ScriptDom.dll)

Syntax

'Declaration
Public Sub GenerateScript ( _
    scriptFragment As TSqlFragment, _
    <OutAttribute> ByRef script As String _
)
'Usage
Dim instance As SqlScriptGenerator 
Dim scriptFragment As TSqlFragment 
Dim script As String

instance.GenerateScript(scriptFragment, _
    script)
public void GenerateScript(
    TSqlFragment scriptFragment,
    out string script
)
public:
void GenerateScript(
    TSqlFragment^ scriptFragment, 
    [OutAttribute] String^% script
)
member GenerateScript : 
        scriptFragment:TSqlFragment * 
        script:string byref -> unit
public function GenerateScript(
    scriptFragment : TSqlFragment, 
    script : String
)

Parameters

See Also

Reference

SqlScriptGenerator Class

GenerateScript Overload

Microsoft.SqlServer.TransactSql.ScriptDom Namespace