C# Class PiroPiro.DbCleanup.SqlServer.SqlRestore

Performs a SQL RESTORE from a backup file
Inheritance: SqlServerStrategy
Afficher le fichier Open project: benjamine/PiroPiro

Méthodes publiques

Méthode Description
Restore ( string databaseName, string backUpFile, string serverName, string userName = null, string password = null ) : void

Restores a SQL database from a backup file. Warning: closes all existing connections

SqlRestore ( Configuration configuration = null ) : System

Méthodes protégées

Méthode Description
DoExecute ( ) : void

Method Details

DoExecute() protected méthode

protected DoExecute ( ) : void
Résultat void

Restore() public static méthode

Restores a SQL database from a backup file. Warning: closes all existing connections
public static Restore ( string databaseName, string backUpFile, string serverName, string userName = null, string password = null ) : void
databaseName string
backUpFile string Backup File accesible from the SQL Server
serverName string SQL server instance
userName string
password string
Résultat void

SqlRestore() public méthode

public SqlRestore ( Configuration configuration = null ) : System
configuration Configuration
Résultat System