IDatabaseMaintenanceFacet.RecoveryModel Property

Gets or set the database recovery model.

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

Syntax

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

value = instance.RecoveryModel

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

Remarks

Valid values are:

  • BulkLogged

  • Full

  • Simple