Restore a backup file.
Namespace:
Devolutions.UtilsAssembly: Devolutions.Utils (in Devolutions.Utils.dll)
Syntax
| Visual Basic |
|---|
Public Shared Function RestoreDatabase ( _ databaseName As String, _ connectionString As String, _ inputFilename As String, _ commandTimeout As Integer _ ) As Boolean |
| C# |
|---|
public static bool RestoreDatabase( string databaseName, string connectionString, string inputFilename, int commandTimeout ) |
Parameters
- databaseName
- Type: System..::..String
- connectionString
- Type: System..::..String
- inputFilename
- Type: System..::..String
- commandTimeout
- Type: System..::..Int32