Nitromuse,
As Cor stated the schema's in both datasets need to be the same.
My understanding is: Each DataSet needs at least one Table that has the same
name in both DataSets. That these tables have to have matching columns
(names, types, sizes) in both DataSets. That the Table has the same
PrimaryKey in both DataSets. That the dataset you are merging from needs
pending changes where as the dataset you are merging to it doesn't matter.
Where dsChanges are the changes you want added to dsMain, such as:
Dim dsChanges As DataSet
Dim dsMain As DataSet
dsMain.Merge(dsChanges)
In addition to OHM's suggestion of the ado.net newsgroup. David Sceppa's
book "Microsoft ADO.NET - Core Reference" from MS Press has a section on
using the Merge method. Also I find David's book to be both a good tutorial
to learn ADO.NET plus a good desk reference once you are using ADO.NET.
Hope this helps
Jay
"Nitromuse" <an*******@discussions.microsoft.com> wrote in message
news:00****************************@phx.gbl...
Hello,
I'm trying to merge two datsets which both have a
common keyed column, and getting nowhere. Do I want to
use the keyed column or not? I'm using the following and
have tried all the constraints every which way.
Dataset1.Merge(Dataset2)
Can anyone shed some light on merging, I thought it was
going to be simple, but there I go thinking again.
Thanks
.