SessionBaseRelocateDatabaseLocationFor Method |
After moving/copying directory containing your
Database with id dbId call this before starting a transaction to update host and directory of the associated
DatabaseLocation.
This function does not move the database files, it only updates the
DatabaseLocation.
Namespace:
VelocityDb.Session
Assembly:
VelocityDb (in VelocityDb.dll) Version: 11.1.0.0 (11.1)
Syntax public DatabaseLocation RelocateDatabaseLocationFor(
uint dbId,
string hostName,
string directory
)
Public Function RelocateDatabaseLocationFor (
dbId As UInteger,
hostName As String,
directory As String
) As DatabaseLocation
public:
DatabaseLocation^ RelocateDatabaseLocationFor(
unsigned int dbId,
String^ hostName,
String^ directory
)
member RelocateDatabaseLocationFor :
dbId : uint32 *
hostName : string *
directory : string -> DatabaseLocation
Parameters
- dbId
- Type: SystemUInt32
Id of one of the Databases in location being relocated - hostName
- Type: SystemString
New host name - directory
- Type: SystemString
New directory path
Return Value
Type:
DatabaseLocationUpdated
DatabaseLocationSee Also