Move physically the database from a folder to an other.

Namespace:  Devolutions.Utils
Assembly:  Devolutions.Utils (in Devolutions.Utils.dll)

Syntax

Visual Basic
Public Shared Function MoveDatabase ( _
	databaseName As String, _
	newFileDirectory As String, _
	connectionString As String _
) As String
C#
public static string MoveDatabase(
	string databaseName,
	string newFileDirectory,
	string connectionString
)

Parameters

databaseName
Type: System..::..String
newFileDirectory
Type: System..::..String
connectionString
Type: System..::..String

Return Value

string.Empty if everything worked fine, Otherwise the error message is returned

See Also