共用方式為


RelocateFile Constructor (String, String)

Initializes a new instance of the RelocateFile class.

命名空間: Microsoft.SqlServer.Management.Smo
組件: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

語法

'宣告
Public Sub New ( _
    logicalFileName As String, _
    physicalFileName As String _
)
public RelocateFile (
    string logicalFileName,
    string physicalFileName
)
public:
RelocateFile (
    String^ logicalFileName, 
    String^ physicalFileName
)
public RelocateFile (
    String logicalFileName, 
    String physicalFileName
)
public function RelocateFile (
    logicalFileName : String, 
    physicalFileName : String
)

參數

  • logicalFileName
    A String value that specifies the logical file name.
  • physicalFileName
    A String value that specifies the physical file name.

備註

The default constructor initializes any fields to their default values.

範例

How to: Back Up Databases and Transaction Logs in Visual Basic .NET

平台

開發平台

如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。

目標平台

如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。

請參閱

參考

RelocateFile Class
RelocateFile Members
Microsoft.SqlServer.Management.Smo Namespace

其他資源

Backing Up and Restoring Databases and Transaction Logs
RESTORE (Transact-SQL)
在 SQL Server 中備份和還原資料庫