Hi All!
I use USE command to open .dbf file on server.
When I run the program it cannot open file due to other person open the file.
Can anyone tell me how to repeat open until successful open?
Regards.
USE command to repeat open
Moderator: Rathinagiri
- Czarny_Pijar
- Posts: 172
- Joined: Thu Mar 18, 2010 11:31 pm
- Location: 19.2341 E 50.2267 N
Re: USE command to repeat open
The easiest way to achieve this is the shout in the office:
Hey guys! Let close your programs for a while, I need the exclusive access to the databases!
If you are the programmer instead, then you need some knowledge about USE ... SHARED, NETERR(), RLOCK(), DBUNLOCK() and USED().
Hey guys! Let close your programs for a while, I need the exclusive access to the databases!
If you are the programmer instead, then you need some knowledge about USE ... SHARED, NETERR(), RLOCK(), DBUNLOCK() and USED().
- esgici
- Posts: 4543
- Joined: Wed Jul 30, 2008 9:17 pm
- DBs Used: DBF
- Location: iskenderun / Turkiye
- Contact:
Re: USE command to repeat open
Hi Apichit
But what we can find some old fashioned information some deserted places.
Here you can find some info on Network Programming.
Two little function derived that book :
A little function for file locking :
and another little function function for USE command on network environment :
I hope that will help you.
Happy HMG'ing
Regards
--
Esgici
While programmers become day to day more busy and lazy, liability of such operations assigned to database serversapichit wrote:...
Can anyone tell me how to repeat open until successful open?
But what we can find some old fashioned information some deserted places.
Here you can find some info on Network Programming.
Two little function derived that book :
A little function for file locking :
and another little function function for USE command on network environment :
I hope that will help you.
Happy HMG'ing
Regards
--
Esgici
Viva INTERNATIONAL HMG
Re: USE command to repeat open
Thank you very much Czarny_Pijar, Esgici.