Make the Select statement with the "For Update" clause, this way the record(s) selected will be locked until the Cursor releases it:
Declare MyCursor For
Select *
From MyFile
Where MyCondition
For Update
...
Close MyCursor
Regards,
Gerardo
Last Wiki Answer Submitted: May 19, 2008 3:05 pm by GAC300 pts.
If you live outside the United States, by submitting your email address you consent to having your personal data transferred to and processed in the United States.