Question : ASP.Net asynchronous sql execution

Hello,

I'm in need of being able to execute a stored procedure from asp.net that makes an asynchronous execution.

Here is the situation.

I have a sproc that takes about 15 minutes to run, it is transforming values on about 8 million records. I need the sproc to be fired on a click from the web. I can handle all of the coding of the sproc and firing the sproc, but i need to know if there is a way to make this call asynchronously so that the user does not have to wait for the sproc to complete.

I do not have access to create jobs, or use the job manager in sql server either which creates a workaround problem.

I will then give status updates from the sproc that tells a table how far it has completed, and that way the user can read how far their process is from the web.

Thank you in advance for your help!

Answer : ASP.Net asynchronous sql execution

If you are more towards coding within SQL Server, SQL Server 2005 has a Service Broker that allows to perform tasks asynchronously. You can do one time setup e.g. create message queue using 'Create Queue' syntax etc. There is lot more involved but it's simple once you understand.
http://www.developer.com/db/article.php/3640771/Getting-Started-with-SQL-Server-Service-Broker.htm
Random Solutions  
 
programming4us programming4us