Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Development - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 3145

Lock corresponding tables until Commit/Rollback

$
0
0
Hi Team,When am updating a row, the corresponding rows should be locked for update.BEGIN TRANSACTION; GO UPDATE UNIFY SET NAME ='HHT' WHERE RECORD_ID=789 GOIn above scenario, the record_id=789 should be locked for update in all corresponding table until I COMMIT / ROLLBACK

Viewing all articles
Browse latest Browse all 3145

Trending Articles