Freigeben über


RecoveryModel-Eigenschaft

Gets or set the database recovery model.

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

Syntax

'Declaration
<DisplayNameKeyAttribute("Database_RecoveryModelName")> _
<DisplayDescriptionKeyAttribute("Database_RecoveryModelDesc")> _
Property RecoveryModel As RecoveryModel
    Get
    Set
'Usage
Dim instance As IDatabaseMaintenanceFacet
Dim value As RecoveryModel

value = instance.RecoveryModel

instance.RecoveryModel = value
[DisplayNameKeyAttribute("Database_RecoveryModelName")]
[DisplayDescriptionKeyAttribute("Database_RecoveryModelDesc")]
RecoveryModel RecoveryModel { get; set; }
[DisplayNameKeyAttribute(L"Database_RecoveryModelName")]
[DisplayDescriptionKeyAttribute(L"Database_RecoveryModelDesc")]
property RecoveryModel RecoveryModel {
    RecoveryModel get ();
    void set (RecoveryModel value);
}
[<DisplayNameKeyAttribute("Database_RecoveryModelName")>]
[<DisplayDescriptionKeyAttribute("Database_RecoveryModelDesc")>]
abstract RecoveryModel : RecoveryModel with get, set
function get RecoveryModel () : RecoveryModel
function set RecoveryModel (value : RecoveryModel)

Hinweise

Valid values are:

  • BulkLogged

  • Full

  • Simple