Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

use waitfor dely in transaction to check locking behaviour is correct or not.

$
0
0

hi,

    I wanted know, is it good idea to test transactions using "waitfor delay",

generally i put watfor delay before commit and run other queries in other query window to check locking,

wether it locks the updated table in other window or not ,if some one selects it in other window , which is updated in other transaction.

by using diffrent isolation level, simultaniouly i use syslockinfo,

sys.dm_tran_locks ,

syslocks

sys.dm_tran_locks

to find locks.

Question is, use of waitfor delay is correct or not, to find the behaviour of isolation levle and/or transaction, to check their locking behaviour?

yours sinclery.



Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>