BackupDirectory Property

后续版本的 Microsoft SQL Server 将删除该功能。请避免在新的开发工作中使用该功能,并着手修改当前还在使用该功能的应用程序。

The BackupDirectory property specifies the backup directory.

语法

object
.BackupDirectory [= value]

Parts

  • object
    An expression that evaluates to an object in the Applies To list
  • value
    A string that specifies the backup directory path

Data Type

String

Modifiable

Read/write

Prototype (C/C++)

HRESULT GetBackupDirectory(SQLDMO_LPBSTR pRetVal);
HRESULT SetBackupDirectory(SQLDMO_LPCSTR NewValue);

备注

Use the BackupDirectory property to specify a location other than the default directory location when running multiple instances of Microsoft SQL Server.

By default, the default instance of SQL Server 2000 stores backup files in the C:\Program Files\Microsoft SQL Server\Mssql\Backup directory. By default, a named instance of SQL Server 2000 stores backup files in the C:\Program Files\Microsoft SQL Server\Mssql$InstanceName\Backup directory, where InstanceName is the name of a nondefault instance of SQL Server.

Note   BackupDirectory can be used with Microsoft SQL Server 7.0 and later.

Applies To:

Registry2 Object