on 2011 Jan 25 2:49 PM
Request clarification before answering.
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;
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
9 | |
9 | |
7 | |
6 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.