Scripter.Script Scripter.Script Scripter.Script Method

Definition

Overloads

Script(Urn[]) Script(Urn[]) Script(Urn[])

Returns a StringCollection object with the script for the passed objects. This method throws an error if ScriptData is true

Script(SqlSmoObject[]) Script(SqlSmoObject[]) Script(SqlSmoObject[])

Returns a StringCollection object with the script for the passed objects. This method throws an error if ScriptData is true

Script(UrnCollection) Script(UrnCollection) Script(UrnCollection)

Returns a StringCollection object with the script for the passed objects. This method throws an error if ScriptData is true

Script(Urn[]) Script(Urn[]) Script(Urn[])

Returns a StringCollection object with the script for the passed objects. This method throws an error if ScriptData is true

public System.Collections.Specialized.StringCollection Script (Microsoft.SqlServer.Management.Sdk.Sfc.Urn[] urns);
member this.Script : Microsoft.SqlServer.Management.Sdk.Sfc.Urn[] -> System.Collections.Specialized.StringCollection
Public Function Script (urns As Urn()) As StringCollection

Parameters

urns
Urn[]

Returns

Exceptions

Script(SqlSmoObject[]) Script(SqlSmoObject[]) Script(SqlSmoObject[])

Returns a StringCollection object with the script for the passed objects. This method throws an error if ScriptData is true

public System.Collections.Specialized.StringCollection Script (Microsoft.SqlServer.Management.Smo.SqlSmoObject[] objects);
member this.Script : Microsoft.SqlServer.Management.Smo.SqlSmoObject[] -> System.Collections.Specialized.StringCollection
Public Function Script (objects As SqlSmoObject()) As StringCollection

Parameters

objects
SqlSmoObject[]

Returns

Exceptions

Script(UrnCollection) Script(UrnCollection) Script(UrnCollection)

Returns a StringCollection object with the script for the passed objects. This method throws an error if ScriptData is true

public System.Collections.Specialized.StringCollection Script (Microsoft.SqlServer.Management.Smo.UrnCollection list);
member this.Script : Microsoft.SqlServer.Management.Smo.UrnCollection -> System.Collections.Specialized.StringCollection
Public Function Script (list As UrnCollection) As StringCollection

Parameters

Returns

Exceptions

Applies to