Asynchronous

Hi Experts,

I have very long stored procedure that require to running for few hours. The current situation is allow the user to start the stored procedure and check the status in the ASP.NET web application.

Current Items
- Web Page contains single START button only
- Stored Procedure named SP_Retrieve_Internet_Record_Monthly
- Table named tblStatus contains one varchar column named Status.

Some suggestion on the web say calling Web Services Asynchronously,
and other say using delegate.

If you can give some examples it will be greatly appreciated.
bbkevinAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

topdog770Commented:
Hi bbkevin,

is there some reason that this process needs to be started by the user?  if, for example, it runs every day, you could create a scheduled task to run the stored procedure, and then generate a report, email, etc. that would notify the user when it is complete.

0
bbkevinAuthor Commented:
The user may not start the process because of bad weather such as earthquake, hurricane, tsunami, typhoon, cyclone...
0
topdog770Commented:
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
apeterCommented:
Stored procedure running for few hours..It is going to time out from asp.net.  

All web methods by default comes with Asyn methods. In your asp.net application, the proxy object of your web service will have "Begin" prefixed to all the web methods in your web service.  All these Begin methods are suppport Asyn calls.
0
bbkevinAuthor Commented:
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
C#

From novice to tech pro — start learning today.