Re: Response.Write Question

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hi,


The execution time itself is not known at priori neither the number of
records "affected". There is no official hook letting you know the progress
done by the query.

What could be done in some cases (with action queries rather than SELECT
queries) is to make "n" small queries, rather than one large, and advance
the progression bar once each of the small queries is done (assuming your
code does not work asynchronously with the query execution thread). That is
likely to make the whole execution time larger, but maybe more robust (the
end user less likely to panic, and possibly locking the table in smaller
chunks of time). Note that you *may* got a situation where some of the "n"
action queries would be executed, and some of the last ones are NOT executed
(for some reason). The possibility, even if quite improbable, has to be
analyzed. If that is found unacceptable, you would have to use a transaction
over the whole set of the n small queries.


Hoping it may help,
Vanderghast, Access MVP

"Dave" <davekstl@xxxxxxxxxxx> wrote in message
news:usWPhVg5FHA.2864@xxxxxxxxxxxxxxxxxxxxxxx
>I want to incorporate a message "Processing..." for the user when a page is
>running a lengthy query.
>
> I don't know how to do it.
>
> I have tried a Response.Write statement but it doesn't print until the
> processing is over.
>
> Ideas please?
>
> Thanks
> dave
>


.



Relevant Pages

  • Cannot open a log file of specified name
    ... I have a DTS package called 'MASTER' which performs 8 execute DTS package ... The execution of the following DTS Package succeeded: ... Total Step Execution Time: 2.375 seconds ... Progress count in Step: 0 ...
    (microsoft.public.sqlserver.dts)
  • Re: CBO & different execution plans
    ... Today I noticed the following strange CBO behaviour: ... The problem is that certain queries run fast with user A (the schema ... the CBO chooses different execution plans based on the user ... exection plans when executed by the view owner compared to another user. ...
    (comp.databases.oracle.server)
  • Re: [Info-Ingres] Insert performance (was "Sun buys MySQL")
    ... Queries are presented at the DBMS server via different GCA messages ... dynamic SQL and cursors defined in dynamic SQL. ... query plan and discards the query source. ... execution plan as the plan is executed. ...
    (comp.databases.ingres)
  • Re: Catastrophic failure
    ... Package Name: UNIFUND ... Package Execution Lineage: ... Total Step Execution Time: 1.061 seconds ... Progress count in Step: 0 ...
    (microsoft.public.sqlserver.dts)
  • Re: DTS package remotely
    ... So the tasks that fail where are they in the log?? ... Total Step Execution Time: 379.765 seconds ... Progress count in Step: 0 ...
    (microsoft.public.sqlserver.dts)