Partager via


TransferDatabaseTask Class

Allows the transfer of a database between a source and a destination server using two different methods: database online, and database offline. The task requires the use of an SMO Connection Manager.

Espace de noms: Microsoft.SqlServer.Dts.Tasks.TransferDatabaseTask
Assembly: Microsoft.SqlServer.TransferDatabasesTask (in microsoft.sqlserver.transferdatabasestask.dll)

Syntaxe

'Déclaration
<GuidAttribute("D9E9F0F6-7771-4596-BC26-2A8BE222CB56")> _
Public NotInheritable Class TransferDatabaseTask
    Inherits Task
    Implements ITransferDatabaseTask, IDTSComponentPersist
[GuidAttribute("D9E9F0F6-7771-4596-BC26-2A8BE222CB56")] 
public sealed class TransferDatabaseTask : Task, ITransferDatabaseTask, IDTSComponentPersist
[GuidAttribute(L"D9E9F0F6-7771-4596-BC26-2A8BE222CB56")] 
public ref class TransferDatabaseTask sealed : public Task, ITransferDatabaseTask, IDTSComponentPersist
/** @attribute GuidAttribute("D9E9F0F6-7771-4596-BC26-2A8BE222CB56") */ 
public final class TransferDatabaseTask extends Task implements ITransferDatabaseTask, IDTSComponentPersist
GuidAttribute("D9E9F0F6-7771-4596-BC26-2A8BE222CB56") 
public final class TransferDatabaseTask extends Task implements ITransferDatabaseTask, IDTSComponentPersist

Notes

The transfer can occur between databases of the same version, or to a higher version. For more information, see Tâche de transfert de bases de données.

Inheritance Hierarchy

System.Object
   Microsoft.SqlServer.Dts.Runtime.DtsObject
     Microsoft.SqlServer.Dts.Runtime.Task
      Microsoft.SqlServer.Dts.Tasks.TransferDatabaseTask.TransferDatabaseTask

Sécurité des threads

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.

Plateformes

Plateformes de développement

Pour obtenir la liste des plateformes prises en charge, consultez Configuration matérielle et logicielle requise pour l'installation de SQL Server 2005.

Plateformes cibles

Pour obtenir la liste des plateformes prises en charge, consultez Configuration matérielle et logicielle requise pour l'installation de SQL Server 2005.

Voir aussi

Référence

TransferDatabaseTask Members
Microsoft.SqlServer.Dts.Tasks.TransferDatabaseTask Namespace