[AccessD] DoEvents equivalent

Mark Breen marklbreen at gmail.com
Thu Jun 24 06:48:04 CDT 2010


Hello John,

I sometimes use that idea, and sometimes, i initially create a variable
named @DebugMode

I then only output my results if Debug = 1, which is nice for when I am
finished, but know I may have to come back sometime.

For your review of progress, you could also insert into a log table instead
of, or in addition to PRINT ing.

I love the log table, as I can review it later and see what the hell has
been happening.

If you log, you only have to open another windows and select *  Order by
Desc and you can see the action in real time.

Mark


On 23 June 2010 15:48, Heenan, Lambert
<Lambert.Heenan at chartisinsurance.com>wrote:

> Take a look here, John..
>
> http://www.sqlservercentral.com/articles/Advanced+Querying/doevents/784/
>
> You'll need to register (free) if you don't already use that site.
>
> Lambert
>
> -----Original Message-----
> From: accessd-bounces at databaseadvisors.com [mailto:
> accessd-bounces at databaseadvisors.com] On Behalf Of jwcolby
> Sent: Wednesday, June 23, 2010 9:34 AM
> To: Sqlserver-Dba; Access Developers discussion and problem solving
> Subject: [AccessD] DoEvents equivalent
>
> Is there a DoEvents equivalent in SQL Server?
>
> I perform a set  of update queries (dynamic SQL) in a cursor, printing a
> status for each loop of the cursor.  The stuff prints but only when the
> entire thing finishes.  I would like to print the results as each update
> occurs.
>
> --
> John W. Colby
> www.ColbyConsulting.com
> --
> AccessD mailing list
> AccessD at databaseadvisors.com
> http://databaseadvisors.com/mailman/listinfo/accessd
> Website: http://www.databaseadvisors.com
>
> --
> AccessD mailing list
> AccessD at databaseadvisors.com
> http://databaseadvisors.com/mailman/listinfo/accessd
> Website: http://www.databaseadvisors.com
>



More information about the AccessD mailing list