Hello everyone,

I want to know how it work in ADO.NET when a DEADLOCK occur and a
victim is choosen?

Is an exception raised?

Thank's

Carl


Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com

Re: How Deadlock are handled in ADO.NET by Miha

Miha
Wed Mar 03 14:25:45 CST 2004

Hi Giro,

I think that you normally get a timeout - depends on a database, ado.net has
nothing to do with it.

--
Miha Markic [MVP C#] - RightHand .NET consulting & development
miha at rthand com
www.rthand.com

"GiroCarl" <carl.bruneau@giro-dot-ca.no-spam.invalid> wrote in message
news:404638ec$1_2@Usenet.com...
> Hello everyone,
>
> I want to know how it work in ADO.NET when a DEADLOCK occur and a
> victim is choosen?
>
> Is an exception raised?
>
> Thank's
>
> Carl
>
>
> Posted Via Usenet.com Premium Usenet Newsgroup Services
> ----------------------------------------------------------
> ** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
> ----------------------------------------------------------
> http://www.usenet.com



ADO.NET and DEADLOCK by carl

carl
Thu Mar 04 09:42:05 CST 2004

Hello Miha,

I'm a newbies in ADO.NET.

When you say that ADO.NET has nothing to do with it i'm a little
surprised because we made to programs for testing a deadlock and the
exceptio raised is a timeout expired.

But if I do exactly what those program are doing directly in Query
Analyser (database tool to make queries), the error I receive is
1205: Transaction (Process ID %d) was deadlocked on {%Z} resources
with another process and has been chosen as the deadlock victim.
Rerun the transaction.

So the behavior is different.

Carl


Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com

ADO.NET and DEADLOCK by carl

carl
Thu Mar 04 10:42:29 CST 2004

Miha,

you were right: ADO.NET has nothing to do with it.

Our two programs were not correct.

Now we have the good exception: DEADLOCK.

Thank's

Carl


Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com

ADO.NET and DEADLOCK by carl

carl
Thu Mar 04 10:42:31 CST 2004

Miha,

you were right: ADO.NET has nothing to do with it.

Our two programs were not correct.

Now we have the good exception: DEADLOCK.

Thank's

Carl


Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com

Re: ADO.NET and DEADLOCK by Miha

Miha
Thu Mar 04 10:47:06 CST 2004

Hi,

You might inspect the Errors property of SqlException class when exception
occurs.

--
Miha Markic [MVP C#] - RightHand .NET consulting & development
miha at rthand com
www.rthand.com

"GiroCarl" <carl.bruneau@giro-dot-ca.no-spam.invalid> wrote in message
news:40474e4d$1_2@Usenet.com...
> Hello Miha,
>
> I'm a newbies in ADO.NET.
>
> When you say that ADO.NET has nothing to do with it i'm a little
> surprised because we made to programs for testing a deadlock and the
> exceptio raised is a timeout expired.
>
> But if I do exactly what those program are doing directly in Query
> Analyser (database tool to make queries), the error I receive is
> 1205: Transaction (Process ID %d) was deadlocked on {%Z} resources
> with another process and has been chosen as the deadlock victim.
> Rerun the transaction.
>
> So the behavior is different.
>
> Carl
>
>
> Posted Via Usenet.com Premium Usenet Newsgroup Services
> ----------------------------------------------------------
> ** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
> ----------------------------------------------------------
> http://www.usenet.com