473,406 Members | 2,847 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Handle stored procedure timeout from ASP

I have an ASP page calling a stored procedure. I have set the connection and
command timeouts and I have error checking so I can trap a timeout from the
stored proc (as detailed here)
http://www.eggheadcafe.com/PrintSear...asp?LINKID=142

This works if the stored proc just contains a "WAITFOR DELAY", but doesn't
seem to throw an error when the stored proc contains long-running sql. Anyone
have any ideas?
Jul 22 '05 #1
2 4760
I dont know an answer for your specific question but here is a side note.
If the request is going to exceed the standard timeout settings you will
want to rethink your process. In otherwords if the process takes that long
dont use it in a request system.

--
Curt Christianson
Site & Scripts: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"Gary Homewood" <Gary Ho******@discussions.microsoft.com> wrote in message
news:F6**********************************@microsof t.com...
I have an ASP page calling a stored procedure. I have set the connection
and
command timeouts and I have error checking so I can trap a timeout from
the
stored proc (as detailed here)
http://www.eggheadcafe.com/PrintSear...asp?LINKID=142

This works if the stored proc just contains a "WAITFOR DELAY", but doesn't
seem to throw an error when the stored proc contains long-running sql.
Anyone
have any ideas?

Jul 22 '05 #2
Thanks for the response, and I agree that it may not be the best architecture
to call a long-running stored procedure from ASP, but I'd still like to know
why I can't catch the timeout.
"Curt_C [MVP]" wrote:
I dont know an answer for your specific question but here is a side note.
If the request is going to exceed the standard timeout settings you will
want to rethink your process. In otherwords if the process takes that long
dont use it in a request system.

--
Curt Christianson
Site & Scripts: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"Gary Homewood" <Gary Ho******@discussions.microsoft.com> wrote in message
news:F6**********************************@microsof t.com...
I have an ASP page calling a stored procedure. I have set the connection
and
command timeouts and I have error checking so I can trap a timeout from
the
stored proc (as detailed here)
http://www.eggheadcafe.com/PrintSear...asp?LINKID=142

This works if the stored proc just contains a "WAITFOR DELAY", but doesn't
seem to throw an error when the stored proc contains long-running sql.
Anyone
have any ideas?


Jul 22 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: deprins | last post by:
Hello, I have wrote a stored procedure but its real slow. Its activated by a button on web page but its takes to long to process and the web server gives a timeout message after 5 minutes. Is...
1
by: Ville Huovinen | last post by:
Platform: Windows 2003 Server (MS SQL Server 2003 SP3) Language: C# Problem: My stored procedures times out randomly, some proces works fine when using them from C#, and some generate...
1
by: Crazy Cat | last post by:
I'm calling several SQL Server 2005 stored procedures from Visual Basic 2005. I've got one stored procedure that locks up at the same point everytime, but if I copy the stored procedure from the...
1
by: deepdata | last post by:
Hi, I am trying to fetch data from db2 (express version) database by calling stored procedure. I have tried to use both cursor and for loop but still i am getting error. --======Start...
7
by: Siv | last post by:
Hi, I have a stored procedure that I want to execute and then wait in a loop showing a timer whilst it completes and then carry on once I get notification that it has completed. The main reason...
2
by: drolfe | last post by:
See below the code for details about the scenario. ------------------------------------------------------------------------------------ Public WithEvents conADS As New SqlConnection("Data...
2
by: rokslide | last post by:
Hi all, I have a web application which (until a few weeks ago) was running fine. Now, periodically, a stored procedure will stop responding and timeout when called via the web application. The...
3
by: Racerx | last post by:
Hi All: I use db2 v8 fp 14 on Aix. I am facing problems with a stored procedure that is causing a lot of locks and also goes in the lock wait state ending up hanging the application. Tried...
0
by: TimSki | last post by:
Hi, For some reason, every 2/3 days a stored procedure on my database will start to timeout during operation. The load is normal and the indexes have been recently ( a few days ago) rebuilt. To...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.