If i SELECT a row for updating in MS SQL Server, and want to have it locked till i either update or cancel, which option is better :-
1) Use a query hint like UPDLOC
just note that despite using ROWLOCK SQL Server might choose to still take a full page lock if it deems needed.