Answer by user2525415 for How to extend the timeout of a SQL query
I think this might be a better way to do this (as of Enterprise Library 6.0):SqlDatabase db = new SqlDatabase(connectionManager.SqlConnection.ConnectionString);System.Data.Common.DbCommand cmd =...
View ArticleAnswer by Ozgur for How to extend the timeout of a SQL query
Try this oneSqlConnectionStringBuilder connectionStringBuilder = new SqlConnectionStringBuilder(connection.ConnectionString);connectionStringBuilder.ConnectTimeout = 180;connection.ConnectionString =...
View ArticleAnswer by Chris Porter for How to extend the timeout of a SQL query
If you are using the EnterpriseLibrary (and it looks like you are) try this: Microsoft.Practices.EnterpriseLibrary.Data.Database db =...
View ArticleAnswer by n8wrl for How to extend the timeout of a SQL query
Mladen is right but if you have to do this you probably have a bigger problem with the proc itself. Under load it might take much longer than your new timeout. Might be worth spending some quality time...
View ArticleAnswer by Mladen Prajdic for How to extend the timeout of a SQL query
You do this by setting the SqlCommand.CommandTimeout property.
View ArticleHow to extend the timeout of a SQL query
This is not a connection timeout as a connection to the database is made fine. The problem is that the stored procedure that I'm calling takes longer than, say, 30 seconds and causes a timeout.The code...
View Article