Consultor Eletrônico



Kbase P13788: How to know in 4GL the PID of the Database server to which t
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   1/31/2004
Status: Unverified

GOAL:

How to know in 4GL the PID of the Database server to which the current remote user is connected

FIX:

4GL code using VST:
DEF VAR servernum AS INTEGER.
FIND FIRST _Myconnection.
FIND FIRST _connect WHERE _connect._connect-pid = _Myconnection._myconn-pid.
ASSIGN servernum=_connect._connect-server.
FIND FIRST _connect WHERE _connect._connect-usr = servernum.
DISPLAY _connect._connect-pid.