private static int ExecuteQuery(ISqlQuery queryToExecute) { int retVal = 0; try { retVal = queryToExecute.Execute(); Console.WriteLine("Success"); } catch (Exception ex) { Console.WriteLine("ERROR: " + ex.Message + "\r\n\t" + queryToExecute.BuildSqlStatement()); } return retVal; }