PC Review


Reply
Thread Tools Rate Thread

dataset merge with itself

 
 
=?Utf-8?B?Um9iaW4=?=
Guest
Posts: n/a
 
      21st Jun 2005
I am trying to create a dataset with multiple records that hold identical
data by merging a dataset with itself. I don't think this will work and I am
looking for other solutions.

For example, a dataset has a parent table called CATEGORY and a child table
called ITEMS. There is a primary key column and the value is -1 for the
parent (and child refers to row -1). Now I want a dataset that has 3 records
with this same information. I want row -1, -2, and -3 all with the same
values. I don't think Merge is what I am looking for because when the dataset
tries to merge with itself, the primary key of -1 is the same and instead of
adding a new row with primary key -2 it merges (imagine that) which results
in still only one row. Does anyone have a better solution to this? Otherwise
I need to manually create all the tables and rows by looping through the
original dataset. Thanks.

 
Reply With Quote
 
 
 
 
Cor Ligthert
Guest
Posts: n/a
 
      21st Jun 2005
Robin,

What is against looping through a dataset (if it is not in ADONET 1.x
removing of datarows).

How do you think that this kind of things is done behind the scene as there
is a method.

Cor


 
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
DataSet.Merge() does not merge row and/or column errors in any cas =?Utf-8?B?SGFucyBXZWJlcg==?= Microsoft ADO .NET 2 19th Dec 2005 07:58 AM
DataSet.Merge where data being merge has less rows than the oringal source Dan Hibbert Microsoft ADO .NET 2 20th Jan 2005 06:35 PM
Dataset merge with subset of another dataset table moondaddy Microsoft ADO .NET 1 14th Sep 2004 05:05 PM
how to use merge with a typed dataset and untyped dataset vipin kumar Microsoft ADO .NET 0 1st Oct 2003 02:21 PM
Re: DataSet.Merge: DataSet.HasChanges returns true Markus Wildgruber Microsoft ADO .NET 6 4th Sep 2003 01:50 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:00 AM.