PC Review


Reply
Thread Tools Rate Thread

ADO.NET concurrency

 
 
=?Utf-8?B?RWQgQ3VycmVu?=
Guest
Posts: n/a
 
      24th May 2004
In perusing Microsoft’s Data Access Architecture guide I found a bit of a conundrum on concurrency. The document outlines 4 possible methods for updating data using a STDS.

1. Including only the primary key column
2. Including all columns in the WHERE claus
3. Including unique key columns and the timestamp column
4. Including unique key columns and the modified column

Of these four only the third one is really recommended by the document, but it also says that ADO.NET does not support this approach. We know that we want to use STDS in our project and it will exist in a disconnected data environment, and data integrity is paramount. So my question is do we have to implement this manually, or does someone have a “silver bullet” on this issue?


 
Reply With Quote
 
 
 
 
Pete Wright
Guest
Posts: n/a
 
      24th May 2004
ADO.NET does support item 3 in your list. You select based on the primary
key WHERE the database timestamp is the same as the cached one. Am I missing
a point here ?


--
--------------------------------------------------------
Peter Wright (www.petewright.org)
Author of ADO.NET Novice To Pro
From Apress. www.apress.com (and 10
other doorstops from Wrox)


"Ed Curren" <(E-Mail Removed)> wrote in message
news:A51D7BA5-32A3-4DD6-BF2B-(E-Mail Removed)...
> In perusing Microsoft's Data Access Architecture guide I found a bit of a

conundrum on concurrency. The document outlines 4 possible methods for
updating data using a STDS.
>
> 1. Including only the primary key columns
> 2. Including all columns in the WHERE clause
> 3. Including unique key columns and the timestamp columns
> 4. Including unique key columns and the modified columns
>
> Of these four only the third one is really recommended by the document,

but it also says that ADO.NET does not support this approach. We know that
we want to use STDS in our project and it will exist in a disconnected data
environment, and data integrity is paramount. So my question is do we have
to implement this manually, or does someone have a "silver bullet" on this
issue?
>
>



 
Reply With Quote
 
=?Utf-8?B?RWQgQ3VycmVu?=
Guest
Posts: n/a
 
      24th May 2004
No, you're not missing anything. After a second read the article was referring strictly to the CommandBuilder and Data Adapter Configuration Wizard. It's a non-issue. I just needed to slow down while reading it.
 
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
Concurrency Peter Bradley Microsoft ADO .NET 2 21st May 2004 04:26 PM
Concurrency in ADO.NET =?Utf-8?B?b3R0bw==?= Microsoft ADO .NET 3 14th May 2004 08:12 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:31 AM.