Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

RecoveryModel Property

This feature will be removed in a future version of Microsoft SQL Server. Avoid using this feature in new development work, and plan to modify applications that currently use this feature.

The RecoveryModel property specifies the recovery model for a database.


object
.RecoveryModel [= value]
object

An expression that evaluates to an object in the Applies To list.

value

An integer that indicates which recovery model to use as specified in Settings.

Constant Value Description

SQLDMORECOVERY_BulkLogged

1

Uses the Bulk-Logged Recovery model.

SQLDMORECOVERY_Full

2

Uses the Full Recovery model.

SQLDMORECOVERY_Simple

0

Default. It uses the Simple Recovery model.

SQLDMORECOVERY_Unknown

3

The recovery model is unknown.

Long, enumerated

Read/write

HRESULT GetRecoveryModel(SQLDMO_RECOVERY_TYPE);
HRESULT SetRecoveryModel(SQLDMO_RECOVERY_TYPE);

Microsoft SQL Server provides the Simple, Bulk-Logged, and Full Recovery models to simplify recovery planning, to simplify backup and recovery procedures, and to clarify tradeoffs between system operational requirements. An application can use the RecoveryModel property to specify which recovery model to use.

ms140654.note(en-US,SQL.90).gifNote:
If an application calls RecoveryModel on an instance of SQL Server version 7.0, the constant, SQLDMO_E_SQL80ONLY, and the message "This property or method requires Microsoft SQL Server 2000 or later" are returned.

Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.