Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Acquire a database exclusive lock at run time
Message
From
29/12/2000 00:55:27
 
 
To
28/12/2000 22:51:00
Rakesh Pahwa
Symco Software P. Ltd.
Mumbai, India
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00457662
Message ID:
00457675
Views:
32
>Hi,
>
>ODBC is being used to connect Back-end database.
>I want to acquire an exclusive lock on this database at run time (without dropping and re-creating the DSN).
>
>How do I go about doing this.
>
>Loy

Back-end databases are specifically designed for concurrency. Typically you use transactions to make changes; if the backend accepts all your changes as a group, they are committed, if not, you can rollback and try again.

With a backend server, you're talking to another program, not just a group of files like in xBASE. That backend program is responsible for handling locks. In a production environment, it may be impossible to gain an exclusive database lock. Some backends may not even support an exclusive database lock, even from its console.

What are you trying to do?
Regards. Al

"Violence is the last refuge of the incompetent." -- Isaac Asimov
"Never let your sense of morals prevent you from doing what is right." -- Isaac Asimov

Neither a despot, nor a doormat, be

Every app wants to be a database app when it grows up
Previous
Reply
Map
View

Click here to load this message in the networking platform