Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to simulate RLock() in Ms SQL 2008
Message
From
09/08/2011 16:27:39
 
General information
Forum:
Microsoft SQL Server
Category:
Other
Environment versions
SQL Server:
SQL Server 2008
Application:
Desktop
Miscellaneous
Thread ID:
01520541
Message ID:
01520544
Views:
37
>>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!
>
>See Re: Issue explicit lock for testing Thread #1347107 Message #1361095

Thanks, but can I issue the Begin Transaction etc in one SQLEXEC() statement? Or do I need to run successive SQL statements and use a separate connection handle of the database?
Christian Isberner
Software Consultant
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform