Export (0) Print
Expand All

SqlScriptGenerator.GenerateScript Method

 

Applies To: SQL Server 2016 Preview

Generates a text representing the specified script fragment.

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

NameDescription
System_CAPS_pubmethodGenerateScript(TSqlFragment, String)

Generates a text representing the specified script fragment.

System_CAPS_pubmethodGenerateScript(TSqlFragment, TextWriter)

Generates a text representing the specified script fragment.

Return to top

SqlScriptGenerator.GenerateScript Method (TSqlFragment, String)

Generates a text representing the specified script fragment.

public void GenerateScript(
	TSqlFragment scriptFragment,
	out string script
)

Parameters

scriptFragment
Type: Microsoft.SqlServer.TransactSql.ScriptDom.TSqlFragment

The fragment of script to generate tokens for.

script
Type: System.String

The script.

Return to top

SqlScriptGenerator.GenerateScript Method (TSqlFragment, TextWriter)

Generates a text representing the specified script fragment.

public void GenerateScript(
	TSqlFragment scriptFragment,
	TextWriter writer
)

Parameters

scriptFragment
Type: Microsoft.SqlServer.TransactSql.ScriptDom.TSqlFragment

The fragment of script to generate tokens for.

writer
Type: System.IO.TextWriter

A text writer to write the text to.

Return to top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft