Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > ADO.NET
|
ADO.NET For discussion about ADO.NET.  Topics such as question regarding the System.Data namespace are appropriate.  Questions specific to a particular application should be posted in a forum specific to the application .
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ADO.NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 4th, 2004, 08:44 AM
Registered User
 
Join Date: Apr 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Dataset Merge then DB Update

I am trying to merge 2 datasets, then commit one back to the database to save all updated/added records. Problem is, when I merge the two datsets, all the records in my target dataset come away with a rowstate of unchanged, even though they have indeed changed. Then none of the changes gets committed back to the db because they don't show up as Added or Modified.

dsOne(new/changed records)
dsTwo(basically a copy of the db table)

I want to merge dsOne --> into --> dsTwo, then
commit dsTwo(with new/modified records from dsOne) --> into --> db

How do I get around the rowstate issue?

Thanks






Similar Threads
Thread Thread Starter Forum Replies Last Post
DataSet - Merge Data Tables srish ADO.NET 0 September 8th, 2007 10:04 AM
update db from dataset nikosnyc VS.NET 2002/2003 1 July 2nd, 2006 06:27 PM
Problem with Dataset Update Aaron Edwards ADO.NET 1 April 29th, 2005 04:26 AM
update access db with dataset DennisGi ASP.NET 1.0 and 1.1 Basics 0 November 8th, 2004 04:43 AM
Dataset Merge Problem jpitzer ASP.NET 1.0 and 1.1 Basics 1 January 9th, 2004 02:46 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.