Reputation:
Im getting this error:
Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding
"Data Source=" + server + ";Initial Catalog=" + database + ";Integrated Security=SSPI;Connection Reset=False;"
Connection pooling is default to true and I am closing all connections.
Any ideas?
Upvotes: 0
Views: 1099
Reputation: 39
Please try the connnection string as follows
You can try any one of them, Connect Timeout=0 or Connection Timeout=0
"Data Source=" + server + ";Initial Catalog=" + database + ";Integrated Security=SSPI;Connection Timeout=0;"
Connect Timeout=0 or Connection Timeout=0 meaning infinite time for the operation to run
refer the following MSDN Link
Upvotes: 1
Reputation: 34421
Could be that the SQL server does not allow incoming TCP/IP connections (which is the default setting).
Upvotes: 1
Reputation: 25197
Is this problem occuring on only one page? or is it a global issue?
Are you aware of what query is causing the timeout?
Upvotes: 0
Reputation: 7210
Try setting ConnectionTimeout and/or CommandTimeout (if working on .NET). A timeout of 0 means "no timeout"
Upvotes: 2