Condividi tramite


TransferSqlServerObjectsTask.CopyPrimaryKeys Property

Gets or sets a Boolean indicating whether primary keys are transferred from the source to the target database.

Spazio dei nomi: Microsoft.SqlServer.Dts.Tasks.TransferSqlServerObjectsTask
Assembly : Microsoft.SqlServer.TransferSqlServerObjectsTask (in microsoft.sqlserver.transfersqlserverobjectstask.dll)

Sintassi

'Dichiarazione
Public Property CopyPrimaryKeys As Boolean
public bool CopyPrimaryKeys { get; set; }
public:
virtual property bool CopyPrimaryKeys {
    bool get () sealed;
    void set (bool value) sealed;
}
/** @property */
public final boolean get_CopyPrimaryKeys ()

/** @property */
public final void set_CopyPrimaryKeys (boolean value)
public final function get CopyPrimaryKeys () : boolean

public final function set CopyPrimaryKeys (value : boolean)

Valore proprietà

true indicates that primary keys are transferred from the source to the target database.

Osservazioni

The default value is true.

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.

Piattaforme

Piattaforme di sviluppo

Per un elenco delle piattaforme supportate, vedere Requisiti hardware e software per l'Installazione di SQL Server 2005.

Piattaforme di destinazione

Per un elenco delle piattaforme supportate, vedere Requisiti hardware e software per l'Installazione di SQL Server 2005.

Vedere anche

Riferimento

TransferSqlServerObjectsTask Class
TransferSqlServerObjectsTask Members
Microsoft.SqlServer.Dts.Tasks.TransferSqlServerObjectsTask Namespace