Merge pull request '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.' (#164) from B2023-120 into Development
Reviewed. Check-in looks good.
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user