Suppose I run a sp for sybase ase. Firstly I need to connect to ase with specific loginname, then I have spid for this session. sp_who can give me the ip/hostname/programname.
then with this spid, I can myproc. Question: within myproc code, can I get the ip/hostname/programname with current spid? any function or system sp for this purpose?