Got it, Thanks.

I more thing. I have a database for an ERP system. Sometimes a user gets kicked but when they try to login again the system tells them they're still login.

A table called Activity doesn't take out the user when they're kicked. Do you have a VB Script that can check the session between SQL and Windows.