tags:

views:

20

answers:

1

What is the best way to apply rowlevel writelock in T-SQL? Best Practices And Samples Please

+1  A: 

The best way is to ignore lock level until you run into a problem and to trust SQL Server to do the right thing. In nearly 10 years working with SQL Server I had to go into locking level details ONCE.

TomTom
@TomTom - Agreed. SQL Server is far smarter than any of us. It's know far better than us when to apply a row lock, page lock or table lock.
Randy Minder
Sry but i need really apply rowlevel writelock in my scenario and i need best practices about it.
Kerem Kusmezer
There is no best practice because it makes no sense to have one. Got it? What exactly is so special in your scenario that you have these requirements - I have not seen them ever since 7.0 created multiple insertion points.
TomTom