共用方式為


SQLBackup Method

未來的 Microsoft SQL Server 版本將移除這項功能。請避免在新的開發工作中使用這項功能,並規劃修改目前使用這項功能的應用程式。

The SQLBackup method performs the database backup operation specified by the properties of the Backup object used.

語法

object.SQLBackup(SQLServer)

Parts

  • object
    Expression that evaluates to an object in the Applies To list.

  • SQLServer
    SQLServer object connected to an instance of Microsoft SQL Server that is the source of the backup operation.

Prototype (C/C++)

HRESULT SQLBackup(LPSQLDMOSERVER ServerObject);

備註

To perform a database backup operation using SQL Distributed Management Objects (SQL-DMO), the application specifies the operation process by setting Backup object properties, and then calls the SQLBackup method. For more information about Backup object properties and their effects on the backup operation process, see Backup Object.

Applies To: