Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 379
  • Last Modified:

Database users kick-off

Gd Day,
I need to find a way to kick-off all users from the database, when needed. I have tried a number of ways proposed on the web. Most of them are based on the timer in the FE checking the status of the table field in the BE. Something does not work or my hands are seriously deformed (together with the brains).
Most of the changes are to be made in the front end (design mode). BE is rarely modified (but also needed for compact and back-up).
Database itself is deployed on the server and there is only one FE file also on the server. Mult. user accessing same FE from the work stations or remotely from world wide (citrix....(access 2010)
Understand that the issue is pretty often the case.

Thanks in advance,
0
hotelguest
Asked:
hotelguest
  • 2
1 Solution
 
peter57rCommented:
" Most of them are based on the timer in the FE checking the status of the table field in the BE."

That is the standard approach. It usually involves displaying a messagebox warning the user that the app will close in X minutes.  There is nothing remarkable about the process, so it's difficult to advise where you might be going wrong.
0
 
Jim Dettman (Microsoft MVP/ EE MVE)PresidentCommented:
<<I need to find a way to kick-off all users from the database, when needed.>>

  There is a passive shutdown feature in JET.  However this is only passive; you set a flag and once set, no one else can connect to the database.  But existing users are not forced out.

 As you've have been told, the best approach by far is to build something into the front end application.   Most take the approach of a hidden form opened at startup which has an timer event running, which checks for some type of flag.

 If it finds the flag, it messages the user, prevents them from opening any new forms or reports, possibly boots them out, etc.

  One thing you don't want to do however is simply sever a users connection to the db (which can be done) as it can lead to corruption of the DB.

Jim.
0
 
DatabaseMX (Joe Anderson - Microsoft MVP, Access and Data Platform)Commented:
I built an entire forced shutdown module using this as a starting point - and it's free.

http://www.peterssoftware.com/fsd.htm

mx
0
 
DatabaseMX (Joe Anderson - Microsoft MVP, Access and Data Platform)Commented:
I can any or all of some 26 dbs (front ends) connected to their respective backends.. At a  minimum, this is done each night prior to backup and compact & repair.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now