asp.net - Asynchronous processing .NET SQL Server? -
After programming for many years, I need to do something for the first time asynchronously (because it takes many minutes and the web.)
Click on a "Save" by using LINQ on an ASP.NET web page, m. Put a record in a SQL Server table. After that it inspires an SSIS package to record in many other databases across the country.
So .. ..
-
How can I (hopefully just) do this asynchronous so that the user can get along with other things?
-
Should it be set on the net or on the SQL side?
-
Is there any way (minutes later) that the user can know that the process is completed and successfully? Maybe an email?
About this, I read some threads on this site, but since 2009 they were not so sure that the footage is very different with the Studio 2012 / .NET Framework 4.5 (We're still using SQL Server 2008 R2).
This is usually a bad idea to do long-running tasks in ASP.net For one thing, if the application pool is recycled before the completion of the work, it will be lost.
I would like to write a request for a database table, and use a different Windows service to run for long. It can update a status column in the database table, which can be checked later to see if the work has been completed, and if an error has occurred.
Comments
Post a Comment