Partager via


Classe TransferDatabaseTask

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 (dans Microsoft.SqlServer.TransferDatabasesTask.dll)

Syntaxe

'Déclaration
<GuidAttribute("D9E9F0F6-7771-4596-BC26-2A8BE222CB56")> _
Public NotInheritable Class TransferDatabaseTask _
    Inherits Task _
    Implements ITransferDatabaseTask, IDTSComponentPersist
'Utilisation
Dim instance As TransferDatabaseTask
[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
[<SealedAttribute>]
[<GuidAttribute("D9E9F0F6-7771-4596-BC26-2A8BE222CB56")>]
type TransferDatabaseTask =  
    class
        inherit Task
        interface ITransferDatabaseTask
        interface IDTSComponentPersist
    end
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.

Hiérarchie d'héritage

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

Sécurité des threads

Tous les membres publics static (Shared dans Visual Basic) de ce type sont thread-safe. Il n'est pas garanti que les membres d'instance soient thread-safe.