Afficher un message
Vieux 26/05/2008, 09h34   #4
Roberto
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Key Range Locking / Next-Key Locking - How to disable it ?



"Alex Kuznetsov" wrote:

> On May 16, 4:06 am, Roberto <Robe...@discussions.microsoft.com> wrote:
> > Key Range Locking
> >
> > (also called Next-Key Locking)
> >
> > There is a way to disable the Key Range Locking mechanism under MS SQL
> > Server 2005 (or 2008) ?
> >
> > Using MySQL, it can be disabled by enabling the
> > innodb_locks_unsafe_for_binlog system variable.
> > Using IBM DB2, it can be disabled by db2set DB2_RR_TO_RS=YES_OVERRIDE_RI
> >
> > I believe that it can be disabled also with MS SQL Server, but how can I do
> > it ?
> >
> > I want to prevent that during an INSERT statements some other rows will be
> > blocked.

>
> What kind of problem are you tying to solve? Different RDBMS have
> different ways of solving concurrency problems.
>


Usually I use the READ UNCOMMITTED Isolation level.
and after under DB2 I use row locking clause in the select statement.

"SELECT .... FOR READ ONLY " if I don't want any kind of lock at row level
or
"SELECT ... WITH RS USE AND KEEP EXCLUSIVE LOCKS" when I want lock a row on
the table.

under db2 this works fine.

I need to replicate this environment under SQL 2005 (but I don't have
experience about it )

My application is a 100 % J2ee Application Running under JBoss/WAS/SAP
Netweaver...

Thank a lot for the reply and sorry the delay in this reply..

  Réponse avec citation
 
Page generated in 0,06139 seconds with 9 queries