A  B  C  D  E  F  G  H  I  J  K  L  M  N  O  P  Q  R  S  T  U  V  W  X  Y  Z  special characters  sybase-tech-blog


Category: ASE: Functions: System Functions

pssinfo()

The system function pssinfo() was introduced out of the requirement to be able to display IPv6 IP addresses with a length of 64 bytes in total. In ASE an IP address is normally stored in the system table sysprocesses. But this table would have to be enlarged in order to store the larger IPv6 format. As this was not possible, the function pssinfo was introduced to retrieve the IP address from internal memory structures. The function pssinfo() is available in ASE starting with version 12.5.4.

Syntax of the System Function pssinfo()

    pssinfo(spid | 0, 'option')
    

The parameters of the System Function pssinfo()

"spid"
The parameter "spid" is the process ID of the session, on which information is needed. The "spid" can be determined using the stored procedure "sp_who", or by reading its value from the column spid of the system table sysprocesses. By specifiying a value of "0" instead of the process ID as parameter for the function, as default, the "spid" of the current session is taken.

"option"
The parameter "option" of the function pssinfo() contains as value a field of the memory based PSS structur, i.e. an internal administrative structure for running processes. Possible values for this parameter are: