Returns the operating system process identifier for a process that owns the current session.
function GetSessionPID: integer;
Call the GetSessionPID method to return the operating system process identifier for a process that owns the current session. This identifier can be usefull to find the dump file in which SQL trace data is written. The name of the dump file contains this identifier.