?
Solved

VB.Net ADO.Net Dataset

Posted on 2010-01-11
1
Medium Priority
?
370 Views
Last Modified: 2012-08-14
Good Day

I have a question that I cannot seem to locate an answer for.  Three people take out a dataset on the same table Categories which has 9 records.  They all locally add the 10th category to their dataset.  Person A syncs back up to the database and now there are 10 catergories.
Person B then tries to sync back to the database via the DataAdapter.  

Would an error result? Would the dataabse somehow handle it? Does the DBA have to have something in place to handle?

Thanks,
jimbo99999
0
Comment
Question by:Jimbo99999
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 14

Accepted Solution

by:
shahprabal earned 2000 total points
ID: 26285316
Here is the answer as well as ways to prevent this from happening :

http://msdn.microsoft.com/en-us/magazine/cc188748.aspx

Basically when the person B tries to update using the old dataset he/she will get a DBConcurrency Exception.
0

Featured Post

Quick Cloud Training

Looking for some quick training on the cloud in 2 hours or less? Check out these how-to guides in AWS, Linux, OpenStack, Azure, and more!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question