IMPORTANT NOTICE: As of 21 February, anything posted in this community WILL NOT BE MIGRATED to our new community site. We have pulled all user information and data from this site and are now in an approximately week long process of importing users, roles, and data to our new site. We are leaving this site open and active so you can post and hopefully get a response until the migration is complete. Once complete, the URL that currently takes you to this site will take you to our new site so your bookmarks will work as always. Please read the information on a New Login Process
One possible method is to use the $StopRunning command.
Note: This feature is provided as a convenience to you, but it has not yet been thoroughly tested.
$StopRunning halts whatever you are running. It bypasses the recovery system, the resetting of recorder options in the Agent and any exception handlers you may have specified.
$StopRunning must be called with the reference operator as @("$StopRunning") ( ).
For Example:- [ ]integer i [ ]i = SYS_GetFreeMemory() [ ] [ ]// If available memory falls below 10% then stop everything. [ ]if i <> [ ]@("$StopRunning")()