0
db.AddInParameter(dbCommand, "@updateMode", DbType.String, entCommon.UpdateMode);
db.AddInParameter(dbCommand, "@requestNumber", DbType.String, entCommon.RequestNumber);
db.AddInParameter(dbCommand, "@description", DbType.String, entCommon.Description);
db.AddInParameter(dbCommand, "@RequestTypeID", DbType.String, entCommon.RequestTypeID);
db.AddInParameter(dbCommand, "@requestPriorityID", DbType.String, entCommon.RequestPriorityID);
db.AddInParameter(dbCommand, "@remarks", DbType.String, entCommon.Remarks);
db.AddInParameter(dbCommand, "@requestedBy", DbType.String, entCommon.RequestedBy);
db.AddInParameter(dbCommand, "@requestedDate", DbType.String, entCommon.RequestedDate);
db.AddInParameter(dbCommand, "@approvedBy", DbType.String, entCommon.ApprovedBy);
db.AddInParameter(dbCommand, "@approvedDate", DbType.String, entCommon.ApprovedDate);
dbCommand.CommandTimeout = 0;
DataSet dsData = null;
dsData = db.ExecuteDataSet(dbCommand);
Gilad Green
  • 36,708
  • 7
  • 61
  • 95

1 Answers1

1

The question is not clear!

If you want to set null value for SQL parameter - use

... = DBNull.Value;
  • How can I construct it in my UI here is my Code for UI; if (txtBox_RNumber.Text != "" && txtBox_Des.Text != "") { BusCommon busCommon = new BusCommon("connDBPSC"); EntCommon entCommon = new EntCommon(); DataTable dtInf = busCommon.InsertITRequests(entCommon); } – Al Andrei Cababay Jul 31 '17 at 05:56