473,404 Members | 2,137 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,404 software developers and data experts.

Help on Store procedure and ASP web page

Dear all,

One simple question relative to store procedure withinh ASP code on a web
page.
Let say that I am calling a store procedure to execute from a server button
click on my web page. That store procedure is returning a bunch of values to
my end user.

In a matter of time based, what happen from my client web page if my store
procedure runs for 3 minutes before returning any data back.

Does the web page execution works synchronously or asynchronously in that
case ?
Does my web application will be stuck for 3 minutes ?

regards
serge
Nov 19 '05 #1
3 1475
Hello serge,
Yes, potentially you page will be hung for 3 minutes, but usully your script
will time out long before that, default 90 seconds.
You might look into using AJAX to perform long time task and then when its
ready to present user with result.

Hope it helps,
Oleg
Dear all,

One simple question relative to store procedure withinh ASP code on a
web
page.
Let say that I am calling a store procedure to execute from a server
button
click on my web page. That store procedure is returning a bunch of
values to
my end user.
In a matter of time based, what happen from my client web page if my
store procedure runs for 3 minutes before returning any data back.

Does the web page execution works synchronously or asynchronously in
that
case ?
Does my web application will be stuck for 3 minutes ?
regards
serge

Nov 19 '05 #2
By default it runs synchronously, so yes the REQUEST is stuck for 3 minutes,
not the entire web application (ie, other requests, which come on a separate
thread, won't be blocked).

A good solution might be....drum roll....Ajax :)
http://msdn.microsoft.com/library/de...SpicedAjax.asp

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/

"serge calderara" <se************@discussions.microsoft.com> wrote in
message news:7D**********************************@microsof t.com...
Dear all,

One simple question relative to store procedure withinh ASP code on a web
page.
Let say that I am calling a store procedure to execute from a server
button
click on my web page. That store procedure is returning a bunch of values
to
my end user.

In a matter of time based, what happen from my client web page if my store
procedure runs for 3 minutes before returning any data back.

Does the web page execution works synchronously or asynchronously in that
case ?
Does my web application will be stuck for 3 minutes ?

regards
serge

Nov 19 '05 #3
How usually people handle the fact that a database can contains a huge amount
of data which could run over the time out ?

Do they fetch the data in 2 or 3 steps ?

What is this AJAX ?

I ma new in ASP sorry

"Oleg Kap" wrote:
Hello serge,
Yes, potentially you page will be hung for 3 minutes, but usully your script
will time out long before that, default 90 seconds.
You might look into using AJAX to perform long time task and then when its
ready to present user with result.

Hope it helps,
Oleg
Dear all,

One simple question relative to store procedure withinh ASP code on a
web
page.
Let say that I am calling a store procedure to execute from a server
button
click on my web page. That store procedure is returning a bunch of
values to
my end user.
In a matter of time based, what happen from my client web page if my
store procedure runs for 3 minutes before returning any data back.

Does the web page execution works synchronously or asynchronously in
that
case ?
Does my web application will be stuck for 3 minutes ?
regards
serge


Nov 19 '05 #4

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

Similar topics

6
by: James Radke | last post by:
Hello, I have a multithreaded windows NT service application (vb.net 2003) that I am working on (my first one), which reads a message queue and creates multiple threads to perform the processing...
15
by: Jay | last post by:
I have a multi threaded VB.NET application (4 threads) that I use to send text messages to many, many employees via system.timer at a 5 second interval. Basically, I look in a SQL table (queue) to...
1
by: Webstorm | last post by:
Hi, I hope someone can help me sort this out a bit, Im completely lost. Here is the page I am working on: http://www.knzbusinessbrokers.com/default.asp I have 3 search critera that I need to...
0
by: halex | last post by:
Hello, I am having deadlock problem when I have a lot of visitors on my website at the same time. I am using NetTiers templates to generate C# classes for accessing DB layer and problem is in my...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.