B2023-120 If the path to the ROMaster DB contains spaces the copy process fails when transfer RO data to SQL along the some house keeping chech ins.

This commit is contained in:
plarsen committed 2023-11-30 11:01:27 -05:00
1 parent 7e3ffffd9a
commit 57e43fe5d7
8 files changed
+167 -43

No files matched your search

@@ -1389,6 +1389,11 @@ namespace VEPROMS
exelocation = exelocation.Substring(0, exelocation.LastIndexOf("\\")) + @"\RoAccessToSql.exe";
int indx = tbRoDb.Text.IndexOf(" (") + 2;
string accesspath = tbRoDb.Text.Substring(indx, tbRoDb.Text.Length - indx - 1);
if (accesspath.IndexOf(" ") > -1) // B2023-120 If there is a space in the path enclose path in double quotes.
{
accesspath = '"' + accesspath + '"';
}
string sqldb = Database.ActiveDatabase;
indx = Database.DBServer.IndexOf(" ");
string server = Database.DBServer.Substring(0, indx);