G
Guest
We are running a lot of unit tests for the product which is built on .NET 1.1
with ADO.NET, and SQL server 2000. Recently some unit test encount this
error:
"System.Data.SqlClient.SqlException : Timeout expired. The timeout period
elapsed prior to completion of the operation or the server is not responding."
Here are some settings we have
connection pool = True
CommandTimeout = 300 (for command object, not the one in Connection object)
The one or several sql commands are wrapped in a transaction. It happened
randomly in different unit test. One of long process stored procedure hit
this problem quite often, but some very short db execution command happened
as well. But all failure happened way before 300s. Through research I notice
there is a transaction timeout which inherits value from connection timeout.
By default it is 15 second. So my questions are:
1) How does transaction timeout relate to CommandTimeout?
2) Which other areas I should look into to prevent Timeout? Any SQL server
setting can help reduce the chance of Timeout?
3) Does it related to connection pool?
4) Does it related to deadlock?
Thanks in advance,
Michael
with ADO.NET, and SQL server 2000. Recently some unit test encount this
error:
"System.Data.SqlClient.SqlException : Timeout expired. The timeout period
elapsed prior to completion of the operation or the server is not responding."
Here are some settings we have
connection pool = True
CommandTimeout = 300 (for command object, not the one in Connection object)
The one or several sql commands are wrapped in a transaction. It happened
randomly in different unit test. One of long process stored procedure hit
this problem quite often, but some very short db execution command happened
as well. But all failure happened way before 300s. Through research I notice
there is a transaction timeout which inherits value from connection timeout.
By default it is 15 second. So my questions are:
1) How does transaction timeout relate to CommandTimeout?
2) Which other areas I should look into to prevent Timeout? Any SQL server
setting can help reduce the chance of Timeout?
3) Does it related to connection pool?
4) Does it related to deadlock?
Thanks in advance,
Michael