Re: Transaction deadlock
From: Ivan (ice348_at_net-yan.com)
Date: 05/14/04
- Next message: pmi: ""Additional information: Object must implement IConvertible.""
- Previous message: Andy Gaskell: "Re: Multi-table DataSet...Select statement??"
- In reply to: Mary Chipman: "Re: Transaction deadlock"
- Next in thread: Mary Chipman: "Re: Transaction deadlock"
- Reply: Mary Chipman: "Re: Transaction deadlock"
- Messages sorted by: [ date ] [ thread ]
Date: Fri, 14 May 2004 09:41:49 +0800
Hi Mary,
Thanks for your reply...
actually, what do u mean the nolock hint... I don't quite understand...
btw... i found a solution for my situation...
which is, if i don't execute 2 same (exactly the same) SELECT statement..
the deadlock won't happen... however, i still wonder how to fix it...
coz i 'm sure i'll face the similar situation again later....
Ivan
"Mary Chipman" <mchip@online.microsoft.com> ???
news:uis6a0tk3elefge78l980586n8eka6p59f@4ax.com ???...
> One thing you might try is to execute the SELECT with the nolock hint.
> That should give you the uncommitted dirty read of the rows, if that
> is what you are looking for.
>
> --Mary
>
> On Thu, 13 May 2004 17:15:16 +0800, "Ivan" <ice348@net-yan.com> wrote:
>
> >Hi All,
> >
> >Does anyone know how to prevent dead lock when
> >selecting records within Transaction??
> >
> >Let me describe abit clear.
> >I created & open a transaction and before i commit/ rollback the
transaction
> >i have to select few records within the same table
> >but the problem is once i execute a select sql statement for serveral
times
> >(usually more than 2 times)... the select sql will be hold and the whole
> >application will be hung...
> >I guess the reason is because the transaction haven't finished
> >and as a result the select sql should be on queue
> >
> >I have tried various solutions like changing the transaction level ...
but
> >none of them work as needed
> >
> >so.. please tell me if anyone know the solutions... thanks to all
> >
> >Ivan
> >
>
- Next message: pmi: ""Additional information: Object must implement IConvertible.""
- Previous message: Andy Gaskell: "Re: Multi-table DataSet...Select statement??"
- In reply to: Mary Chipman: "Re: Transaction deadlock"
- Next in thread: Mary Chipman: "Re: Transaction deadlock"
- Reply: Mary Chipman: "Re: Transaction deadlock"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|