public DataTable GetDailycardReport(DailyReportPL dailyreportpl)
{
DataTable dtGetDailycardReport = new DataTable();
try
{
SqlParameter[] arParams = new SqlParameter[2];
arParams[0] = new SqlParameter("@farmername", typeof(string));
arParams[0].Value = dailyreportpl.farmername;
arParams[1] = new SqlParameter("@batchno", typeof(int));
arParams[1].Value = dailyreportpl.batchno;
dtGetDailycardReport.Load(SqlHelper.ExecuteReader(connection.ConnectionString, CommandType.StoredProcedure, "k_DailyCardreport", arParams));
}
catch (Exception ex)
{
//DBExceptionPublisher exc = new DBExceptionPublisher();
//exc.Publish(ex);
}
finally
{
}
return dtGetDailycardReport;
}
예외 ::은 시간 초과 예외
"Timeout expired. The timeout period elapsed prior to completion of
the operation or the server is not responding."
내가 저장 프로 시저에 매개 변수를 전달의 200에 명령 제한 시간을 증가 괜찮나 " 메시지 위에 표시하는 예외를 붙 잡았다 webconfig
에 있습니다 .Google에서 검색했지만 최적화 된 결과가 없습니다.
이 .. –
이 당신의 코드를보기 내 C# 코드 – Bhagavan