Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Who is logged?
Message
From
11/04/2008 05:29:36
 
 
To
10/04/2008 02:37:30
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
01309596
Message ID:
01309898
Views:
8
Hi Tom,
thank you for reply. It could be a reasonable way to check the calling client, even if it needs more code and change each sql sequence. I'm looking for something more simple and fast, like Windows API: at least checking which client is connected, at the moment, to the server
Bye

>Hi Francesco,
>
>with GETENV([COMPUTERNAME]) and GETENV([USERNAME]) each client-pc can submit it's name and the user's name. To check, which data is being read, I would create a seperate table i.e. currenttasks containing information like
>
>id i (autoinc),
>computername c(20),
>username c(20),
>tablename c(20),
>accesstype i (INSERT=1/DELETE=2/UPDATE=3),
>beginwork t (datetime),
>endwork t (datetime)
>
>Before each sql sequence just call a routine i.e. filltaskstable(1|2|3). The given parameter defines the accesstype.
>
>A second possibility would be, to create triggers for those tables, that you are mostly interested in. However, AFAIK those wouldn't be able to set an endwork field.
Previous
Reply
Map
View

Click here to load this message in the networking platform