collapse help message and increase timeout

This commit is contained in:
Paul Trowbridge 2018-08-21 09:41:51 -04:00
parent a15e5e5d49
commit 0cbee068f4

View File

@ -20,20 +20,15 @@ namespace test
string sql = ""; string sql = "";
string nr = ""; string nr = "";
string nc = ""; string nc = "";
string nl = Environment.NewLine;
string msg = "Help:"; string msg = "Help:";
msg = msg + Environment.NewLine; msg = msg + nl + "version 0.14";
msg = msg + "version 0.14"; msg = msg + nl + "-scs source connection string";
msg = msg + Environment.NewLine; msg = msg + nl + "-dcs destination connection string";
msg = msg + "-scs source connection string"; msg = msg + nl + "-sq path to source query";
msg = msg + Environment.NewLine; msg = msg + nl + "-dt fully qualified name of destination table";
msg = msg + "-dcs destination connection string"; msg = msg + nl + "--help info";
msg = msg + Environment.NewLine;
msg = msg + "-sq path to source query";
msg = msg + Environment.NewLine;
msg = msg + "-dt fully qualified name of destination table";
msg = msg + Environment.NewLine;
msg = msg + "--help info";
//---------------------------------------parse args into variables------------------------------------------------- //---------------------------------------parse args into variables-------------------------------------------------
@ -104,7 +99,7 @@ namespace test
Console.Write(Environment.NewLine); Console.Write(Environment.NewLine);
Console.Write("etl start:" + DateTime.Now.ToString()); Console.Write("etl start:" + DateTime.Now.ToString());
NpgsqlTransaction pgt = pgc.BeginTransaction(); NpgsqlTransaction pgt = pgc.BeginTransaction();
ibmcmd.CommandTimeout = 600; ibmcmd.CommandTimeout = 6000;
System.Data.Odbc.OdbcDataReader ibmdr; System.Data.Odbc.OdbcDataReader ibmdr;
try { try {
ibmdr = ibmcmd.ExecuteReader(); ibmdr = ibmcmd.ExecuteReader();