Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Locking SQL Server?
Message
 
To
24/06/1996 07:53:46
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00002740
Message ID:
00002798
Views:
29
>multi-environment. If user #1 selects row from
>SQL Server, he gets 1st status of this row. Then
>user #2 selects row from SQL Server too. He gets
>the same status as the former. User #1 updates the
>data. Then user #2 wants to update too but the
>data is already changed. He should receive warning
>message that is about the changed data. In SQL
>Server, It has automatically locked so I can't

I used optimistic row buffering for the views to the SQL DB. When I wanted to write the changes, I used something like :
IF !(=TableUpdate(.T.))
=MessageBox("Another user...",0,"Conflict")
=TableRevert()
ENDIF

HTH,
Scot.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform