Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Prevent users from opening the same account
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01036572
Message ID:
01036583
Views:
10
>>Hi everybody,
>>
>>We're using views with buffering mode 5. The VFP database is on the server. If we want to prevent users on the network from opening the same account, is there some mechanism other than storing currently opened accounts in some intermediate table (file)?
>>
>>Thanks in advance.
>
>You can explicit LOCK the record(s) on server and then check if the record is locked or not. But this could cause a problems if you plan to port your application to Different DB (MySQL, SQL Server ...)

I think, the easiest and most reliable way to implement it would be to have a TrackingTable in the Database. Some nightly process will have to pack this table. How would it work in case the application crashes?

Thanks.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform