C# Class PiroPiro.DbCleanup.SqlServer.SqlServerStrategy

Base class for strategies that clean up a SQL database
Inheritance: DbCleanupStrategy
Mostra file Open project: benjamine/PiroPiro

Public Methods

Method Description
DbExists ( string databaseName, string serverName, string userName = null, string password = null ) : bool
SqlServerStrategy ( Configuration configuration = null ) : System
SqlServerStrategy_Executed ( object sender, EventArgs e ) : void

Private Methods

Method Description
Attach ( string databaseName, string serverName, string userName, string password, string mdfFile ) : void
Detach ( string databaseName, string serverName, string userName = null, string password = null ) : void
GetDatabaseFiles ( string databaseName, string serverName, string &mdfFile, string &logFile, string userName = null, string password = null ) : void
GrantFullControl ( string filename, string user ) : void
LocalPathToUnc ( string serverName, string fullpath ) : string

Method Details

DbExists() public static method

public static DbExists ( string databaseName, string serverName, string userName = null, string password = null ) : bool
databaseName string
serverName string
userName string
password string
return bool

SqlServerStrategy() public method

public SqlServerStrategy ( Configuration configuration = null ) : System
configuration Configuration
return System

SqlServerStrategy_Executed() public method

public SqlServerStrategy_Executed ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void