You are here: Re: Using aba_lockinfo in a loop « MsSQL Server « IT news, forums, messages
Re: Using aba_lockinfo in a loop

Posted by Roy Harvey on 08/18/06 12:19

On alternative would be a watifor loop. Here is an example using a
five second delay over one minute.

declare @t datetime
set @t = dateadd(second,60,getdate())

WHILE getdate() <= @t
BEGIN
--do something here
select getdate()
waitfor delay '00:00:05'
END

Roy Harvey
Beacon Falls, Ct

On 18 Aug 2006 02:59:45 -0700, "Jim Devenish"
<internet.shopping@foobox.com> wrote:

>Erland Sommarskog's procedure aba_lockinfo provides very valuable
>information when trying to sort out locking and blocking problems.
>
>However is only provides a snapshot in time.
>
>Is it possible to have this run continuously for a period of time? or
>possibly at set intervals, say every minute?
>
>If so, how would one set it up?

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация