Поделиться через


Свойство BatchUpgradeOptions.BackupOldPackages

Gets or sets the value that specifies whether to back up the original Службы Integration Services packages before upgrading the packages.

Пространство имен:  Microsoft.SqlServer.Dts.Runtime
Сборка:  Microsoft.SqlServer.ManagedDTS (в Microsoft.SqlServer.ManagedDTS.dll)

Синтаксис

'Декларация
Public Property BackupOldPackages As Boolean 
    Get 
    Set
'Применение
Dim instance As BatchUpgradeOptions 
Dim value As Boolean 

value = instance.BackupOldPackages

instance.BackupOldPackages = value
public bool BackupOldPackages { get; set; }
public:
property bool BackupOldPackages {
    bool get ();
    void set (bool value);
}
member BackupOldPackages : bool with get, set
function get BackupOldPackages () : boolean 
function set BackupOldPackages (value : boolean)

Значение свойства

Тип: System.Boolean
A value that specifies whether to back up the original packages. The default value is false.

Замечания

We recommend that you back up the original packages when one of the following conditions is true:

  • The values of the name and newName properties of the UpgradePackageInfo that represents the packaged to be upgraded are the same.

  • The value of the newName property of the UpgradePackageInfo is null or an empty string.

You can back up the original packages only when the you create a NewFileStorage object for both the original packages and upgraded packages. You cannot back up the original packages when you create a NewServerStorage object or a NewSqlStorage object for the packages.

The NewFileStorage method creates a file storage.

The RootFolder property specifies the folder to which the original packages will be backed up.

См. также

Справочник

BatchUpgradeOptions Класс

Пространство имен Microsoft.SqlServer.Dts.Runtime