>Hello,
>
>In our VFP applications, when working with DBF tables, we sometimes used RLOCK() to lock a certain record in order to check the state of things, like for example if a user is logged in, we lock the record of the user in a session table, and then can check which records are locked, knowing which users are logged in. (When the user logs out, or if they lost connection with the server or the program crashes, the lock would eventually get released).
>
>What is the best way to simulate this functionality in SQL Server?
>
>Thanks in advance!
I guess it depends on what you're actually trying to do. If it's how to deal with update conflicts this might help:
http://www.jamesbooth.com/conflicts.htmEdit:
This command is handy also: GETFLDSTATE( )
ICQ 10556 (ya), 254117