Subject | RE: [firebird-support] object is in use |
---|---|
Author | Svein Erling Tysvær |
Post date | 2013-07-10T16:05:40Z |
> sometimes when I need to change the database object - view/procedure - this error is raised.Maybe something like:
>
> Can I detect which user/transaction causing this problem?
select distinct a.mon$user
from mon$statements s
join mon$attachments a on s.mon$attachment_id = s.mon$attachment_id
where s.mon$sql_text containing <view/procedure name>
and s.mon$transaction_id <> current_transaction
could give you an indication as to who could be using the object?
HTH,
Set