Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 plz help

Author  Topic 

AskSQLTeam
Ask SQLTeam Question

0 Posts

Posted - 2007-02-26 : 10:09:01
rival writes "hello, plz i need help in sql server 2000
windows XP, Service Pack 2

if i want to lock a specific record in a specific table

>>set tran isolation level serializable
>>begin tran T1
>>select * from tbl_region with (rowlock) where reg_recid=1

In another connection I want to know that table 'tbl_region'
is locked in her record 'reg_recid=1' by the transaction 'T1'

Thanks"
   

- Advertisement -