When you enable, replace, or disable query logging, the running query is not affected, but all subsequent queries take on new rule changes.
The following table describes the DBQL behavior as a result of a change to an active session.
| Action | Query for Session | Result |
|---|---|---|
| Enable logging (submit a BEGIN QUERY LOGGING statement) for an active session | In process |
|
| Replace an existing rule (submit a REPLACE QUERY LOGGING statement) | In process | Logging begins with receipt of the next query. |
| End a session that is being logged | Cached | If a default row is being logged (logging was not only SUMMARY), the AbortFlag is set to T. |
| Disable logging (submit an END QUERY LOGGING statement) for an active session | Cached |
|
| Change a logon account of a user while the user is submitting queries that are under DBQL logging | In process | Whether the DBQL logging rule can be applied on the session is re-evaluated on the next query. |