RelocateFile Class
SQL Server 2012
The RelocateFile object is a programmatic tool that lets a file be relocated.
Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.SmoExtended (in Microsoft.SqlServer.SmoExtended.dll)
The RelocateFile type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | RelocateFile() | Initializes a new instance of the RelocateFile class. |
![]() | RelocateFile(String, String) | Initializes a new instance of the RelocateFile class. |
| Name | Description | |
|---|---|---|
![]() | LogicalFileName | Gets or sets the logical file name for the specified file. |
![]() | PhysicalFileName | Gets or sets the physical file name for the specified file. |
The RelocateFile class is used with the RelocateFiles property to relocate files during a restore operation.
Thread Safety
Any public static (Shared in Microsoft Visual Basic) members of this type are safe for multithreaded operations. Any instance members are not guaranteed to be thread safe.

.gif?cs-save-lang=1&cs-lang=jscript)
.gif?cs-save-lang=1&cs-lang=jscript)
.gif?cs-save-lang=1&cs-lang=jscript)