For my VFP application, I have a program to check currently who is accessing the server (using sp_who2), as well as another program to check who is currently blocking this table.
But I want to know what options are available to my users at the moment. I think if I can write SP to get the current process identifier for a specific client and paste it into a table (ActLog) in SQL with the program name skipped in this table when the user loads the program. And delete this particular entry when the user unloads the program.
Then from ActLog I can find out who is currently accessing which program. At the moment I want to know if I can get the client process ID?
Rgds / Andrea
source share