Groups | Blog | Home
all groups > dotnet sdk > april 2005 >

dotnet sdk : DB Connection Timeout


Badri
4/4/2005 11:05:06 AM
I am having a long running stored procedure and I'd like my C# code to wait
longer before it timesout. So I use the following connection string but still
it always timesout after about 40 secs.
"Server=" + ServerName + ";Database=" + Database + ";Integrated
Security=SSPI;Connect Timeout=600"

gaidar
4/4/2005 10:38:37 PM

Check your database server settings. Is it allow setting timeouts more than
40 second?

If the problem is not on client than it's obviously on the server :)

Gaidar

[quoted text, click to view]

Badri
4/5/2005 3:31:06 AM
Thx for your response, Gaidar. I checked in my Enterprise Manager by
right-cliking on the servername. I found a tab called "Connection" wherein
there was an option for "Query time-out"; it is already set to 600 secs. Is
there are different place that I need to change as well.

[quoted text, click to view]
AddThis Social Bookmark Button