Scripter.ScriptWithList Scripter.ScriptWithList Scripter.ScriptWithList Method

Definition

Creates linear Transact-SQL scripts for a list of objects.

Overloads

ScriptWithList(Urn[]) ScriptWithList(Urn[]) ScriptWithList(Urn[])

Creates linear Transact-SQL scripts for an array of Urn objects.

ScriptWithList(DependencyCollection) ScriptWithList(DependencyCollection) ScriptWithList(DependencyCollection)

Creates linear Transact-SQL scripts for a DependencyCollection object.

ScriptWithList(SqlSmoObject[]) ScriptWithList(SqlSmoObject[]) ScriptWithList(SqlSmoObject[])

Creates linear Transact-SQL scripts for an array of SqlSmoObject objects.

ScriptWithList(UrnCollection) ScriptWithList(UrnCollection) ScriptWithList(UrnCollection)

Creates linear Transact-SQL scripts for a UrnCollection object.

ScriptWithList(Urn[]) ScriptWithList(Urn[]) ScriptWithList(Urn[])

Creates linear Transact-SQL scripts for an array of Urn objects.

public:
 System::Collections::Specialized::StringCollection ^ ScriptWithList(cli::array <Microsoft::SqlServer::Management::Sdk::Sfc::Urn ^> ^ urns);
public System.Collections.Specialized.StringCollection ScriptWithList (Microsoft.SqlServer.Management.Sdk.Sfc.Urn[] urns);
Public Function ScriptWithList (urns As Urn()) As StringCollection
Parameters
urns
Urn[]

An array of Urn object values that specify the list of objects to be scripted.

Returns

A StringCollection object value that specifies the Transact-SQL scripts for the list of objects.

Examples

Scripting

Remarks

This method throws an exception if it is invoked when the ScriptData property is set to True. This prevents the whole dataset from being scripted to a StringCollection object.

ScriptWithList(DependencyCollection) ScriptWithList(DependencyCollection) ScriptWithList(DependencyCollection)

Creates linear Transact-SQL scripts for a DependencyCollection object.

public:
 System::Collections::Specialized::StringCollection ^ ScriptWithList(Microsoft::SqlServer::Management::Smo::DependencyCollection ^ depList);
public System.Collections.Specialized.StringCollection ScriptWithList (Microsoft.SqlServer.Management.Smo.DependencyCollection depList);
Public Function ScriptWithList (depList As DependencyCollection) As StringCollection
Parameters
depList
DependencyCollection DependencyCollection DependencyCollection

A DependencyCollection object value that specifies the list of objects to be scripted.

Returns

A SqlSmoObject object array value that specifies the list of objects to be scripted.

Examples

Scripting

Remarks

This method throws an exception if it is invoked when the ScriptData property is set to True. This prevents the entire dataset from being scripted to a StringCollection object.

ScriptWithList(SqlSmoObject[]) ScriptWithList(SqlSmoObject[]) ScriptWithList(SqlSmoObject[])

Creates linear Transact-SQL scripts for an array of SqlSmoObject objects.

public:
 System::Collections::Specialized::StringCollection ^ ScriptWithList(cli::array <Microsoft::SqlServer::Management::Smo::SqlSmoObject ^> ^ objects);
public System.Collections.Specialized.StringCollection ScriptWithList (Microsoft.SqlServer.Management.Smo.SqlSmoObject[] objects);
Public Function ScriptWithList (objects As SqlSmoObject()) As StringCollection
Parameters
objects
SqlSmoObject[]

A SqlSmoObject object array value that specifies the list of objects to be scripted.

Returns

A SqlSmoObject object array value that specifies the list of objects to be scripted.

Examples

Scripting

Remarks

This method throws an exception if it is invoked when the ScriptData property is set to True. This prevents the entire dataset from being scripted to a StringCollection object.

ScriptWithList(UrnCollection) ScriptWithList(UrnCollection) ScriptWithList(UrnCollection)

Creates linear Transact-SQL scripts for a UrnCollection object.

public:
 System::Collections::Specialized::StringCollection ^ ScriptWithList(Microsoft::SqlServer::Management::Smo::UrnCollection ^ list);
public System.Collections.Specialized.StringCollection ScriptWithList (Microsoft.SqlServer.Management.Smo.UrnCollection list);
Public Function ScriptWithList (list As UrnCollection) As StringCollection
Parameters
list
UrnCollection UrnCollection UrnCollection

A UrnCollection object value that specifies the list of objects to be scripted.

Returns

A StringCollection object value that specifies the Transact-SQL scripts for the list of objects.

Examples

Scripting

Remarks

This method throws an exception if it is invoked when the ScriptData property is set to True. This prevents the entire dataset from being scripted to a StringCollection object.

Applies to