Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Exclusive
Message
De
06/05/2005 14:58:11
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
Oracle
Divers
Thread ID:
01011699
Message ID:
01011742
Vues:
16
MAC address? We are not talking about a client-server system here; a database server might keep track keep track of how many users access it, based on IP or MAC, but in the case of VFP, this is responsibility of the operating system.

Some mechanism to control maximum number of users might be desirable; but I think another way must be found.

In the meantime: one mechanism I find interesting is to create a table with 1000 records, and have the executable do something like:
locate for rlock()
if not found() or recno() > MAX_USERS
  MessageBox("Too many users")
  return
endif
Of course, the responsibility of doing this check resides in the executable, and not in the database.
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform