Hi All
I am facing SQL Server Timeout exception.
try
{
SetStoredProcCommand(SPRetrieveIntSchedReport, DatabaseConfigKey);
AddInParameter("@FromDate", DbType.DateTime, schedule.FromDate);
AddInParameter("@ToDate", DbType.DateTime, schedule.ToDate);
AddInParameter("@ApplnType", DbType.String, schedule.ApplnType);
IDataReader dataReader = ExecuteReader();
while (dataReader.Read())
{ .....}
}
When the control reaches the data reader its taking much time to enter the WHILE loop, and some times its getting in and its done fine,but sme times facing this SQL SERVER TIMEOUT EXCEPTION.
please help.
Thanks in advance.
I am facing SQL Server Timeout exception.
try
{
SetStoredProcCommand(SPRetrieveIntSchedReport, DatabaseConfigKey);
AddInParameter("@FromDate", DbType.DateTime, schedule.FromDate);
AddInParameter("@ToDate", DbType.DateTime, schedule.ToDate);
AddInParameter("@ApplnType", DbType.String, schedule.ApplnType);
IDataReader dataReader = ExecuteReader();
while (dataReader.Read())
{ .....}
}
When the control reaches the data reader its taking much time to enter the WHILE loop, and some times its getting in and its done fine,but sme times facing this SQL SERVER TIMEOUT EXCEPTION.
please help.
Thanks in advance.