This commit is contained in:
Kathy Ruffing 2012-09-12 12:56:00 +00:00
parent 0e2ab11122
commit aeb64e2479

View File

@ -36,7 +36,8 @@ namespace DataLoader
{ {
long lTime = DateTime.Now.Ticks; long lTime = DateTime.Now.Ticks;
string pth = docver.Title; string pth = docver.Title;
// if the Title is empty, return because this docversion has already been migrated.
if (pth == null || pth == "") return TimeSpan.FromTicks(lTime);
if (!File.Exists(pth + @"\set.dbf") || !File.Exists(pth + @"\curset.dat")) return new TimeSpan(); // Open connection if (!File.Exists(pth + @"\set.dbf") || !File.Exists(pth + @"\curset.dat")) return new TimeSpan(); // Open connection
OleDbConnection cn = new OleDbConnection(@"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + pth + ";Extended Properties=dBase III;Persist Security Info=False"); OleDbConnection cn = new OleDbConnection(@"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" + pth + ";Extended Properties=dBase III;Persist Security Info=False");
if (convertProcedures) if (convertProcedures)