Translating with DrWatson… this can take a few seconds the first time.
This is a genuine, complex translation. DrWatson protects commands, error codes, and log output while naturally translating the surrounding text. It’s translated once and saved.
Art S. Kagel — — source: Informix-list mailing list archive (1991-1998)
Johannes Plassmann wrote:
>
> Hi there,
> I've a question of how to determine a currently processed SQL STATEMENT.
>
> Imagine a thread which is processing a bunch of sql statements and
> another thread which wants to figure out which statement is currently
> processed.
Open a second connection to the sysmaster database from this monitor
thread and execute the following:
SELECT sqx_sessionid,
sqx_selflag[4,12] sttmt_type,
sqx_sqlstatement statement
FROM syssqexplain
WHERE sqx_sessionid = <session id of the other connection>
Art S. Kagel
Your privacy choices
We use strictly necessary cookies to make this site work. With your
consent we’d also use optional cookies for analytics and marketing. You can accept all,
reject all, or choose. Read our Cookie Policy.