다음을 통해 공유


TransSubscription.BackupInformation 속성

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

네임스페이스:  Microsoft.SqlServer.Replication
어셈블리:  Microsoft.SqlServer.Rmo(Microsoft.SqlServer.Rmo.dll)

구문

‘선언
Public Property BackupInformation As SubscriptionBackupInformation 
    Get 
    Set
‘사용 방법
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)

속성 값

유형: Microsoft.SqlServer.Replication.SubscriptionBackupInformation
A SubscriptionBackupInformation object.

주의

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).

참고 항목

참조

TransSubscription 클래스

Microsoft.SqlServer.Replication 네임스페이스

관련 자료

스냅숏 없이 트랜잭션 구독 초기화