cancel
Showing results for 
Search instead for 
Did you mean: 

Is event running?

Former Member
3,352

Is there a way to check if an event is running?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member

If you are using 10.0.1 or later, you could use the following to check if a particular event is currently running:

if exists( select * from sa_conn_list(null,db_id()) 
    where connection_property('EventName', Number) = '<event_name>') then
    // event is running
end if;

Answers (1)

Answers (1)

VolkerBarth
Contributor

You can use sa_conn_info() to check for current connections.

Connections for events (like other internal connections) have high numbers (above 1 billion) and are named after the event.

So you might check that from within your event.