Re: Locking
From: Hassan (fatima_ja_at_hotmail.com)
Date: 02/23/04
- Next message: Mark Broadbent: "Re: Book"
- Previous message: Uri Dimant: "Re: BackUp question"
- In reply to: Andrew J. Kelly: "Re: Locking"
- Next in thread: Dan Guzman: "Re: Locking"
- Reply: Dan Guzman: "Re: Locking"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 23 Feb 2004 00:19:24 -0800
Andrew, Pessimistic is the default.
The only way to obtain optimistic concurrency control is from an application
using some sort of GUID or timestamp or you would have to use some
combination of nolock,update locks ,etc . If you provide some more info, Im
pretty sure someone could assist you
"Andrew J. Kelly" <sqlmvpnoooospam@shadhawk.com> wrote in message
news:edbBIXc%23DHA.488@TK2MSFTNGP12.phx.gbl...
> Actually the default is Optimistic as far as SQL Server itself is
concerned.
> You should investigate how your connections are being made to the server
and
> what they are setting. For instance you may be set to use the
SERIALIZABLE
> transaction isolation mode and set as with IMPLICIT TRANSACTIONS. I
would
> check out SET IMPLICIT_TRANSACTIONS and SET TRANSACTION ISOLATION LEVEL in
> BooksOnLine. You can useProfiler to see what your front end is sending to
> SQL Server when you connect.
>
> --
> Andrew J. Kelly SQL MVP
>
>
> "scimitar" <julian@phoenix7.co.uk> wrote in message
> news:AD2AA861-40AE-47DE-852A-4D4264781418@microsoft.com...
> > Our database hase been designed around the optimistic locking strategy -
> this has worked well for many years- however we have now ported our
database
> to ms sql server - where the default locking strategy is pessimistic -
This
> is fine for most transactions - but I badly need to change the default to
> optimistic for one particular area of the system - how do I do this at the
> server side.
> >
> > In short - How do I change the default locking strategy from pessimistic
> to optimistic ?
> >
> > We are using Borland delphi and bde to communicate with the database.
>
>
- Next message: Mark Broadbent: "Re: Book"
- Previous message: Uri Dimant: "Re: BackUp question"
- In reply to: Andrew J. Kelly: "Re: Locking"
- Next in thread: Dan Guzman: "Re: Locking"
- Reply: Dan Guzman: "Re: Locking"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|