Share via


DacStore.Upgrade Method

Note: This API is now obsolete.

Upgrades the DAC type of a DAC instance to the version of the specified DAC type extracted from a DAC package.

Namespace:  Microsoft.SqlServer.Management.Dac
Assembly:  Microsoft.SqlServer.Management.Dac (in Microsoft.SqlServer.Management.Dac.dll)

Syntax

'Declaration
<ObsoleteAttribute("Please use the method named IncrementalUpgrade on this same class.")> _
Public Function Upgrade ( _
    currentInstanceName As String, _
    dacTypeToBeDeployed As DacType, _
    upgradeOptions As DacUpgradeOptions _
) As DacUpgradeResult
'Usage
Dim instance As DacStore
Dim currentInstanceName As String
Dim dacTypeToBeDeployed As DacType
Dim upgradeOptions As DacUpgradeOptions
Dim returnValue As DacUpgradeResult

returnValue = instance.Upgrade(currentInstanceName, _
    dacTypeToBeDeployed, upgradeOptions)
[ObsoleteAttribute("Please use the method named IncrementalUpgrade on this same class.")]
public DacUpgradeResult Upgrade(
    string currentInstanceName,
    DacType dacTypeToBeDeployed,
    DacUpgradeOptions upgradeOptions
)
[ObsoleteAttribute(L"Please use the method named IncrementalUpgrade on this same class.")]
public:
DacUpgradeResult^ Upgrade(
    String^ currentInstanceName, 
    DacType^ dacTypeToBeDeployed, 
    DacUpgradeOptions^ upgradeOptions
)
[<ObsoleteAttribute("Please use the method named IncrementalUpgrade on this same class.")>]
member Upgrade : 
        currentInstanceName:string * 
        dacTypeToBeDeployed:DacType * 
        upgradeOptions:DacUpgradeOptions -> DacUpgradeResult 
public function Upgrade(
    currentInstanceName : String, 
    dacTypeToBeDeployed : DacType, 
    upgradeOptions : DacUpgradeOptions
) : DacUpgradeResult

Parameters

  • currentInstanceName
    Type: System.String
    A String value that specifies the name of the DAC instance to upgrade.

Return Value

Type: Microsoft.SqlServer.Management.Dac.DacUpgradeResult
A DacUpgradeResult object that indicates the results of the upgrade.