Click or drag to resize

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
)

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: DatabaseLocation
Updated DatabaseLocation
See Also