SQL script to convert data to Approval format
Added Status before and after running script Added query conditions to limit the databases listed
This commit is contained in:
3010
PROMS/DataLoader/PROMStoAPPR.sql
Normal file
3010
PROMS/DataLoader/PROMStoAPPR.sql
Normal file
File diff suppressed because it is too large
Load Diff
@@ -357,12 +357,14 @@ namespace DataLoader
|
||||
|
||||
private void RunScript(string scriptName, string dbName)
|
||||
{
|
||||
Status = String.Format("Running Script '{0}'", scriptName);
|
||||
string script = GetScript(scriptName);
|
||||
script=script.Replace("{DBName}", MySettings.DBName);
|
||||
script=script.Replace("{DBPath}", MySettings.DBPath);
|
||||
SQLScriptRunner ssr = new SQLScriptRunner(script, MySettings.ConnectionString.Replace("{DBName}", dbName));
|
||||
ssr.InfoMessage += new SQLScriptRunnerEvent(ssr_InfoMessage);
|
||||
ssr.Run();
|
||||
Status = String.Format("Script '{0}' Complete", scriptName);
|
||||
}
|
||||
private void Backup(string suffix)
|
||||
{
|
||||
|
Reference in New Issue
Block a user