You are on page 1of 1

private const string SqlSelectDssptrm = "select * from DSSPTRM where IP_PORT_COD

E = {0} and SHIP_METHOD = \'{1}\'";


private const string SQL_SEL_DSSPTRX = "select " + FLD_TRANSIT_GROUP + ",
" + FLD_ANTICIPATE_DATE_VALIDATION +
" from DSSPTRX " +
"where " + FLD_DEPT + " = {0} and " + FLD_DESTINATION_STORE + " = {1
}";
StringBuilder sb = new StringBuilder();
sb.AppendFormat(SQL_SEL_DSSPTRX, _dept, _destStore);
if (this.dbConn.State != ConnectionState.Open)
this.dbConn.Open();
iDB2Command cmd = new iDB2Command(sb.ToString(), CommandType.Tex
t, this.dbConn);
iDB2DataReader rdr = cmd.ExecuteReader();

You might also like