pssinfo

Description

Returns information from the Adaptive Server process status structure (pss).

Syntax

pssinfo(spid | 0, 'pss_field')

Parameters

spid

is the process ID. When you enter 0, the current process is used.

pss_field

is the process status structure field. Valid values are:

  • dn – distinguished name when using LDAP authentication.

  • extusername – when using external authentication like (PAM, LDAP), extusername returns the external PAM or LDAP user name used.

  • ipaddr – client IP address.

  • ipport – client IP port number used for the client connection associated with the user task being queried.

  • isolation_level – isolation level for the current session.

  • tempdb_pages – number of tempdb pages used.

Examples

Example 1

Displays the port number for spid number 14

select pssinfo(14,'ipport')
----------------
           52039

Usage