<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"><channel><category>pcsoft.us.windev</category><copyright>Copyright 2026, PC SOFT</copyright><lastBuildDate>8 Jul 2016 01:25:00 Z</lastBuildDate><pubDate>7 Jul 2016 14:57:00 Z</pubDate><description>Hi,&#13;
&#13;
What would be the best strategy to run an long calculation that is done in a MS SQL stored Procedure triggered by a user action from a webpage ?&#13;
&#13;
The user presses the"Calculate" button on the webpage. This will call a procedure on the WebDev Server Side that is calling the MS SQL Stored Procedure that does the calculation. This calculation takes about 1 to 2 minutes depending on the parameters.&#13;
&#13;
I show a wait dialog on the screen, but my Browser (Chrome) will display an warning box that the server is not responding. You can select cancel or wait. But if it takes to long it will just abort the whole thing ! Even the warning box is not wanted.&#13;
&#13;
Can I start a thread on server side to run this procedure in the background ?&#13;
En when it is finished, how can I notify the user ? I would like to show a "Calculating NOW" message in the browser that would disappear when the calculation is done, even if this calculation or process would take a few minutes and would exceed the browser response timeout !&#13;
&#13;
How to best approach this kind of problem ?&#13;
&#13;
Thanks&#13;
Danny</description><ttl>30</ttl><generator>WEBDEV</generator><language>en_US</language><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/58549-wb21-long-running-sql-query-background/read.awp</link><title>[WB21] Long running MS SQL Query in background ?</title><managingEditor>moderateur@pcsoft.fr (El moderador)</managingEditor><webMaster>webmaster@pcsoft.fr (El webmaster)</webMaster><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/58549-wb21-long-running-sql-query-background-58558/read.awp</comments><pubDate>8 Jul 2016 01:25:00 Z</pubDate><description>Thanks Fabrice,&#13;
&#13;
I'll try that direction and post the results here !&#13;
&#13;
Danny</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/58549-wb21-long-running-sql-query-background-58558/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/58549-wb21-long-running-sql-query-background-58558/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/58549-wb21-long-running-sql-query-background/read.awp">[WB21] Long running MS SQL Query in background ?</source><title>Re: [WB21] Long running MS SQL Query in background ?</title></item><item><author>guest</author><category>pcsoft.us.windev</category><comments>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/58549-wb21-long-running-sql-query-background-58552/read.awp</comments><pubDate>7 Jul 2016 16:20:00 Z</pubDate><description>Hi Danny,&#13;
&#13;
you could use a call made with ajaxexecuteasynchronous from browser code...&#13;
&#13;
This call doesn't wait for a return,…</description><guid isPermaLink="true">https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/58549-wb21-long-running-sql-query-background-58552/read.awp</guid><link>https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/58549-wb21-long-running-sql-query-background-58552/read.awp</link><source url="https://forum.pcsoft.fr/es-ES/pcsoft.us.windev/58549-wb21-long-running-sql-query-background/read.awp">[WB21] Long running MS SQL Query in background ?</source><title>Re: [WB21] Long running MS SQL Query in background ?</title></item></channel></rss>
