I need to kick the users out when they've being idle for some period of time, I know this could be simple but don't know how to do it. specially because you have to take in count that we're using sql server and an odbc conneccion to it, so i want to be sure that the sql server is not working on the background making some large query, then i don't want to kick the user out.
but if it is idle and is not perfoming a sql query in the server, then I want to kcik him out
.......
DO WHILE .T.
ME.Work()
ENDDO