0 out of 1 rated this helpful - Rate this topic

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: System.Collections.Specialized.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.

Did you find this helpful?
(1500 characters remaining)

Community Additions

ADD
© 2013 Microsoft. All rights reserved.