Compartir a través de


TransSubscription.BackupInformation Propiedad

Gets or sets information needed to initialize a subscription from a backup.

Espacio de nombres:  Microsoft.SqlServer.Replication
Ensamblado:  Microsoft.SqlServer.Rmo (en Microsoft.SqlServer.Rmo.dll)

Sintaxis

'Declaración
Public Property BackupInformation As SubscriptionBackupInformation 
    Get 
    Set
'Uso
Dim instance As TransSubscription 
Dim value As SubscriptionBackupInformation 

value = instance.BackupInformation

instance.BackupInformation = value
public SubscriptionBackupInformation BackupInformation { get; set; }
public:
property SubscriptionBackupInformation^ BackupInformation {
    SubscriptionBackupInformation^ get ();
    void set (SubscriptionBackupInformation^ value);
}
member BackupInformation : SubscriptionBackupInformation with get, set
function get BackupInformation () : SubscriptionBackupInformation 
function set BackupInformation (value : SubscriptionBackupInformation)

Valor de la propiedad

Tipo: Microsoft.SqlServer.Replication.SubscriptionBackupInformation
A SubscriptionBackupInformation object.

Comentarios

You must enable AllowInitializationFromBackup on the Attributes property for the publication before you set the BackupInformation property.

The BackupInformation property value is ignored if the value SyncType is not InitializeWithBackup.

The BackupInformation property is a read/write property that cannot be accessed once the subscription has been created.

The BackupInformation property can only be set by members of the sysadmin fixed server role or by members of the db_owner fixed database role.

Setting BackupInformation is equivalent to executing sp_addsubscription (Transact-SQL).

Vea también

Referencia

TransSubscription Clase

Espacio de nombres Microsoft.SqlServer.Replication

Otros recursos

Inicializar una suscripción transaccional sin una instantánea