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] "gaidar" wrote:
>
> 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
>
> "Badri" <Badri@discussions.microsoft.com> wrote in message
> news:C3DCCCAE-DA54-4D51-A5BE-F7220AA5069F@microsoft.com...
> >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"
> >
> > What am I doing wrong?
>
>