S
Saurabh
Hi,
I am getting the below mentioned error when I try to update a table
Exception: Unable to update Person records Exception : System.Data.SqlClient.SqlException: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.
I have also set checked the time out of the server to unlimited. I am using the SQLDataReader in my applciation at quite a few palces and make it a point to close the object and set it to nothing.
Here is the snippet of the code.
SqlDataReader lobj_PersonTable = SqlHelper.ExecuteReader(GDFConnectionReader,CommandType.Text,lstr_SQL);
while(lobj_PersonTable.Read())
{
}
lobj_CompanyTable.Close();
lobj_CompanyTable = null;
But if I check the SQL server enterprise manager, I find a number of locks/Process Id under current activity. I feel that its these locks that might be preventing the update statement from executing. Am I missing something here?
Any help would be appreciated.
Thanks and Regards,
Saurabh
I am getting the below mentioned error when I try to update a table
Exception: Unable to update Person records Exception : System.Data.SqlClient.SqlException: Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding.
I have also set checked the time out of the server to unlimited. I am using the SQLDataReader in my applciation at quite a few palces and make it a point to close the object and set it to nothing.
Here is the snippet of the code.
SqlDataReader lobj_PersonTable = SqlHelper.ExecuteReader(GDFConnectionReader,CommandType.Text,lstr_SQL);
while(lobj_PersonTable.Read())
{
}
lobj_CompanyTable.Close();
lobj_CompanyTable = null;
But if I check the SQL server enterprise manager, I find a number of locks/Process Id under current activity. I feel that its these locks that might be preventing the update statement from executing. Am I missing something here?
Any help would be appreciated.
Thanks and Regards,
Saurabh