Partager via


Transfer Class

The Transfer object is a tool object that provides programmatic control over copying of schemas and data to other instances of Microsoft SQL Server.

Espace de noms: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

Syntaxe

'Déclaration
Public Class Transfer
    Implements ITransferMetadataProvider
public class Transfer : ITransferMetadataProvider
public ref class Transfer : ITransferMetadataProvider
public class Transfer implements ITransferMetadataProvider
public class Transfer implements ITransferMetadataProvider

Notes

Note: There are some limitations when transferring a database from a server instance running Microsoft SQL Server 2005 to a server instance running Microsoft SQL Server 2000.

  • If the database has a schema for which there is no corresponding user on the target SQL Server 2000 server instance, it cannot be transferred. In this case, you have to create a user who has a name that is the same as the name of the schema.

  • Any object that uses the following datatypes cannot be transferred:

    • SqlDataType.Xml

    • SqlDataType.VarCharMax

    • SqlDataType.NVarCharMax

    • SqlDataType.VarBinaryMax

Note: The following object types cannot be transferred:

  • All broker objects

  • All mail objects

  • Endpoint

  • ServerDdlTrigger

  • ExtendedStoredProcedure

  • FullTextCatalog

  • UserDefinedMessage

  • ApplicationRole

Cet espace de noms, cette classe ou ce membre est pris en charge uniquement par la version 2.0 de Microsoft .NET Framework.

To get and set Transfer object properties, users can be a member of the public fixed server role.

To transfer data, users can be a member of the public fixed server role.

Inheritance Hierarchy

System.Object
  Microsoft.SqlServer.Management.Smo.Transfer

Exemple

How to: Transfer Schema and Data from One Database to Another in Visual Basic .NET

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

Transfer Members
Microsoft.SqlServer.Management.Smo Namespace

Autres ressources

Transferring Data