Share via


Action Property (Restore)

Microsoft SQL Server의 이후 버전에서는 이 기능이 제거됩니다. 새 개발 작업에서는 이 기능을 사용하지 말고, 현재 이 기능을 사용하는 응용 프로그램은 수정하십시오.

The Action property specifies a restore operation target or type.

구문

object
.
Action [= value]

Parts

  • object
    An expression that evaluates to an object in the Applies To list.
  • value
    A long integer specifying a restore operation as described in Settings

Data Type

Long, enumerated

Modifiable

Read/write

Prototype (C/C++)

HRESULT GetAction(SQLDMO_RESTORE_TYPE* pRetVal);
HRESULT SetAction(SQLDMO_RESTORE_TYPE NewValue);

Settings

Constant Value Description

SQLDMORestore_Database

0

Restores the database.

SQLDMORestore_Files

1

Restores only files indicated.

SQLDMORestore_Log

2

Restores records to the database transaction log.

주의

Microsoft SQL Server can restore a database, one or more operating system files containing table or index data, or part or all of the transaction log of a database.

Applies To:

Restore Object