I have created the following TSQL:
begin transaction
update person.Address set addressline2 = 'The Town' where addressid=1
WAITFOR DELAY '0:00:010'
commit
During the ten second delay you are not able to run this SQL statement in another SQL Studio Manager:
SELECT * FROM Person.Address
Or this:
SELECT * FROM Person.Address where addressid=1
But you are able to run this:
SELECT * FROM Person.Address where addressid<>1
Does SQL Studio Manager choose the lock type? I don't believe it does as you can do this:
SELECT * FROM Person.Address where addressid=1 nolock
I have read this webpage: > http://msdn.microsoft.com/en-us/library/ms175519%28v=sql.105%29.aspx, but I am still unclear.