Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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.
The following tables list the members exposed by the TransferDatabaseTask type.
Public Constructors
| Name | Description | |
|---|---|---|
| TransferDatabaseTask | Initializes a new instance of the TransferDatabaseTask class. | 
Top
Public Properties
| Name | Description | |
|---|---|---|
| .gif) | Action | Gets or sets a value from the TransferAction enumeration indicating whether the Transfer Database task is copying or moving databases. | 
| .gif) | DestinationConnection | Gets or sets a String containing the name of the SMO connection manager for the destination database. | 
| .gif) | DestinationDatabaseFiles | Gets or sets a String containing the name of the database files for the destination database. | 
| .gif) | DestinationDatabaseName | Gets or sets a String containing the name of the database at the destination. | 
| .gif) | DestinationOverwrite | Gets or sets a Boolean indicating whether the destination database can be overwritten if it exists. | 
| .gif) | ExecutionValue | Overridden. Returns the result of the task execution. | 
| .gif) | Method | Gets or sets a value from the TransferMethod enumeration indicating whether to use Online or Offline transfer method. | 
| .gif) | ReattachSourceDatabase | A Boolean indicating whether the database should be reattached or not. | 
| .gif) | SourceConnection | Gets or sets a String containing the name of the SMO connection manager for the source database. | 
| .gif) | SourceDatabaseFiles | Gets or sets a String containing the names of the source database files to transfer. | 
| .gif) | SourceDatabaseName | Gets or sets a String containing the name of the source database to transfer. | 
| .gif) | Version | Returns the version of the task. This property is read-only. (inherited from Task) | 
| .gif) | WaitForMe | Returns a Boolean that indicates whether the parent container should wait for completion of this task. This property is read-only. (inherited from Task) | 
Top
Public Methods
(see also Protected Methods )
| Name | Description | |
|---|---|---|
| .gif) | CanUpdate | (inherited from Task ) | 
| .gif) | Equals | Overloaded. (inherited from DtsObject ) | 
| .gif) | Execute | Overridden. Runs the task. | 
| .gif) | GetConnectionID | (inherited from Task ) | 
| .gif) | GetConnectionName | (inherited from Task ) | 
| .gif) | GetHashCode | Returns the hash code for this instance. (inherited from DtsObject) | 
| .gif) | GetType | (inherited from Object ) | 
| .gif) | InitializeTask | Overridden. Initializes the properties associated with the task. This method is called by the runtime and is not used in code. | 
| .gif) | LoadFromXML | This method is not callable by your application code. To load a package saved as .xml, use the Application.LoadPackage method. | 
| .gif) .gif) | op_Equality | (inherited from DtsObject ) | 
| .gif) .gif) | op_Inequality | (inherited from DtsObject ) | 
| .gif) .gif) | ReferenceEquals | (inherited from Object ) | 
| .gif) | SaveToXML | This method is not callable by your application code. To save a package as .xml, use the Application.SaveToXml method. | 
| .gif) | ToString | (inherited from Object ) | 
| .gif) | Update | (inherited from Task ) | 
| .gif) | Validate | Overridden. Verifies that the task component is correctly configured. | 
Top
Protected Methods
| Name | Description | |
|---|---|---|
| .gif) | Finalize | (inherited from Object ) | 
| .gif) | MemberwiseClone | (inherited from Object ) | 
Top
See Also
Reference
TransferDatabaseTask Class
Microsoft.SqlServer.Dts.Tasks.TransferDatabaseTask Namespace