Transfer.EnumScriptTransfer Method
Creates a Transact-SQL command batch script used to transfer database objects or database objects and data to another database instance.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.SmoExtended (in microsoft.sqlserver.smoextended.dll)
Syntax
'Deklaracja
Public Function EnumScriptTransfer As IEnumerable(Of String)
public IEnumerable<string> EnumScriptTransfer ()
public:
IEnumerable<String^>^ EnumScriptTransfer ()
public IEnumerable<String> EnumScriptTransfer ()
public function EnumScriptTransfer () : IEnumerable<String>
Return Value
An IEnumerable string list interface that contains the script.
Remarks
EnumScriptTransfer returns a script for the database as an enumerable interface. The returned IEnumerable can be used to iterate through each statement in the resulting script. This method will use ScriptData to check if data should be included in the generated script.
Thread Safety
Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Platforms
Development Platforms
For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.
Target Platforms
For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.