What is the best way to apply rowlevel writelock in T-SQL? Best Practices And Samples Please
views:
20answers:
1
+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
2010-03-25 12:49:23
@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
2010-03-25 12:59:33
Sry but i need really apply rowlevel writelock in my scenario and i need best practices about it.
Kerem Kusmezer
2010-03-29 08:53:56
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
2010-03-29 11:35:19