dump erroring sql

This commit is contained in:
Paul Trowbridge 2018-08-20 11:43:54 -04:00
parent f1316a7147
commit 3e79323c18

View File

@ -24,7 +24,7 @@ namespace test
string msg = "Help:";
msg = msg + Environment.NewLine;
msg = msg + "version 0.13";
msg = msg + "version 0.14";
msg = msg + Environment.NewLine;
msg = msg + "-scs source connection string";
msg = msg + Environment.NewLine;
@ -184,6 +184,7 @@ namespace test
ibmc.Close();
pgt.Rollback();
pgc.Close();
return;
}
sql = "";
}
@ -197,10 +198,11 @@ namespace test
catch (Exception e) {
Console.Write(Environment.NewLine);
Console.Write(e.Message);
System.IO.File.WriteAllText(@"C:\Users\ptrowbridge\Downloads\runner_error.sql",sql);
//ibmc.Close();
pgt.Rollback();
pgc.Close();
return;
}
sql = "";
}