Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

How to Force users to disconnect while FM Script runs

Featured Replies

I have a FM Server 11 (Adv on Win) installation where I need to update one table via a server-side script at 2am every morning. Although most users will be logged off at that time, there is always the possibility that someone will be connected.

Is there any feature in FM Server that allows me to force a disconnect of all users of a particular database while a server-script runs?

I thought about closing and reopening the database and then having each client check for some value in a table (i.e. the last import date) before they are allowed to connect, but... thought there might be a more elegant built-in feature for doing this since it seems commonplace.

Thanks much in advance.

John Christensen

[email protected]

Not sure why you would be worried about somebody still being logged in... you can trap for locked records and work around it me thinks.

But if you want to kick the users off, use a script sequence schedule. Use a batch file as the OS script that uses the fmsadmin command line to disconnect all clients. Make sure the batch file or VBscripts exits with a non-zero result if that command produces an error. That will prevent your FM script set up in the script sequence to run.

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.