close
DataSet dstmp = new DataSet();
bool rc = false;
//設定連結字串
Database db = base.GetDatabase();
DbCommand dbCommand = db.GetStoredProcCommand(sp_name);
dbCommand.CommandType = CommandType.StoredProcedure;
db.AddInParameter(dbCommand, "@FDate", DbType.DateTime, FDate);
#region try
try
{
dstmp = db.ExecuteDataSet(dbCommand);
rc = true;
return dstmp;
}
catch ( Exception ex)
{
return dstmp;
}
#endregion
全站熱搜