Exit on SQL script failure

Added error handling to RunScript method
Exit on SQL script failure
Changed vefn_ChronologyReport
Changed how check for prior existence of rofst
This commit is contained in:
Rich
2013-02-08 23:47:21 +00:00
parent 7f58611e6b
commit 635b88de4d
5 changed files with 58 additions and 42 deletions

View File

@@ -55,10 +55,10 @@ namespace DataLoader
// roDbpath = fstPath.Substring(0, fstPath.LastIndexOf('\\')) + @"\ro";
// first see if this rodb has been migrated (another dataset may have migrated it)
rodb = RODb.GetByFolderPath(roDbpath);
DirectoryInfo di = new DirectoryInfo(roDbpath);
rodb = RODb.GetByFolderPath(di.FullName);
if (rodb == null)
{
DirectoryInfo di = new DirectoryInfo(roDbpath);
// There may be more than 1 'ro' as the 'ROName' field (ROName is derived from the ropath).
// Get new name be incrementing, if so.