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.

Implements

IScriptable.Script(ScriptingOptions)

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

Community Additions

ADD
Show:
© 2014 Microsoft