Export (0) Print
Expand All

TableViewTableTypeBase.Script Method (ScriptingOptions)

Generates a Transact-SQL script that can be used to re-create the database object with the specified scripting options.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

public StringCollection Script(
	ScriptingOptions scriptingOptions
)

Parameters

scriptingOptions
Type: Microsoft.SqlServer.Management.Smo.ScriptingOptions
A ScriptingOptions object that specifies the scripting options.

Return Value

Type: StringCollection
The generated Transact-SQL script.

Implements

IScriptable.Script(ScriptingOptions)

This method generates an exception if the scriptingOptions are set so that the entire dataset is scripted.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft