Partilhar via


Método SqlScriptGenerator.GenerateScript (TSqlFragment, String%)

Generates a text representing the specified script fragment.

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

Sintaxe

'Declaração
Public Sub GenerateScript ( _
    scriptFragment As TSqlFragment, _
    <OutAttribute> ByRef script As String _
)
'Uso
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
)

Parâmetros

Consulte também

Referência

SqlScriptGenerator Classe

Sobrecarregado GenerateScript

Namespace Microsoft.SqlServer.TransactSql.ScriptDom