Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / .NET SDK / April 2005

Tip: Looking for answers? Try searching our database.

DB Connection Timeout

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Badri - 04 Apr 2005 19:05 GMT
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?
gaidar - 04 Apr 2005 19:38 GMT
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

>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
[quoted text clipped - 4 lines]
>
> What am I doing wrong?
Badri - 05 Apr 2005 11:31 GMT
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.

> Check your database server settings. Is it allow setting timeouts more than
> 40 second?
[quoted text clipped - 11 lines]
> >
> > What am I doing wrong?

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.