PC Review


Reply
Thread Tools Rate Thread

Concurrency in ADO.NET

 
 
=?Utf-8?B?b3R0bw==?=
Guest
Posts: n/a
 
      11th May 2004
Hi all

We´re developing an application will have a lot of concurrent users. I want to know what´s he best way to give a solution to this problem in .NET. Any idea will be appreciated

Thanks a lot.
 
Reply With Quote
 
 
 
 
Cowboy
Guest
Posts: n/a
 
      11th May 2004
Within the DataSet, you have a variety of types of rows. Concurrency can be
handled on update, as the DataAdapter will find changed data and alert you
of problem rows.

Note: the less data changed per transaction, the less likely to hit a lot of
concurrency issues (ie, if someone edits one record and saves, concurrency
problems are lower than editing hundreds of rows offline and then saving).

Dino Esposito has written quite a bit of material on ADO.NET, including
articles (and chapters) on data concurrency. Consult his articles on MSDN
and consider his ADO.NET/ASP.NET book from last year.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

************************************************
Think Outside the Box!
************************************************
"otto" <(E-Mail Removed)> wrote in message
news:178DC075-9F29-46B9-96F0-(E-Mail Removed)...
> Hi all:
>
> We´re developing an application will have a lot of concurrent users. I

want to know what´s he best way to give a solution to this problem in .NET.
Any idea will be appreciated.
>
> Thanks a lot.



 
Reply With Quote
 
William Ryan eMVP
Guest
Posts: n/a
 
      11th May 2004
There is no one size fits all answer. If you use the commandbuilder, you are
really limited. If you roll your own logic you have full control over it.

Basically you can determine what conditions you'll want to throw an
concurrency exception if you roll your own logic. You can trap and respond
to concurrency excpetions however you want.

If you use the Configuration wizard, you can turn off Optimistic
concurrency, and for a learning experience, I'd encourage you to configure
an adapter with OC on and off and see the different code that's generated.
If you use a COmmandBuilder, if Any value changes you'll get a concurrency
exception. If you use your own, you can trap the exception and ask the user
what they want or implement whatever business rule is in place.

In some instances last in wins is best. In a hospital envrironment, someone
may well die if you do this... so there really isn't a 'best'

If you have some specifics I'll be glad to address them with you.

HTH,

Bill

www.devbuzz.com
www.knowdotnet.com

"otto" <(E-Mail Removed)> wrote in message
news:178DC075-9F29-46B9-96F0-(E-Mail Removed)...
> Hi all:
>
> We´re developing an application will have a lot of concurrent users. I

want to know what´s he best way to give a solution to this problem in .NET.
Any idea will be appreciated.
>
> Thanks a lot.



 
Reply With Quote
 
Sahil Malik
Guest
Posts: n/a
 
      14th May 2004
otto, I would recommend reading ADO.NET - David Sceppa. He explains
concurrency rather well with some really practical examples. I know of a
company that has tweaked his optimistic concurrency model to wildly
optimistic concurrency (long story), to suit their needs.

- Sahil Malik
Independent Consultant
You can reach me thru my blog at -
http://www.dotnetjunkies.com/weblog/sahilmalik/


"otto" <(E-Mail Removed)> wrote in message
news:178DC075-9F29-46B9-96F0-(E-Mail Removed)...
> Hi all:
>
> We´re developing an application will have a lot of concurrent users. I
> want to know what´s he best way to give a solution to this problem in
> .NET. Any idea will be appreciated.
>
> Thanks a lot.



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need Concurrency Help Jonathan Wood Microsoft ADO .NET 6 22nd May 2008 06:33 AM
Concurrency desais@gmail.com Microsoft Outlook Calendar 1 28th Feb 2006 05:07 PM
Concurrency Help epigram Microsoft ADO .NET 6 17th May 2005 07:05 AM
ADO.NET concurrency =?Utf-8?B?RWQgQ3VycmVu?= Microsoft ADO .NET 2 24th May 2004 07:11 PM
Concurrency Peter Bradley Microsoft ADO .NET 2 21st May 2004 04:26 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:25 AM.