Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Joining two DataSets
Message
De
19/01/2006 15:23:01
 
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Divers
Thread ID:
01088354
Message ID:
01088606
Vues:
9
Pete,

If you assign a PK column in each the DataTable (look at the PrimaryKey property of a DataTable), then you should be able to use the DataSet.Merge() method to merge the two DataSets.

~~Bonnie



>Hello there, thought I'd throw this in before going off in the wrong direction, I have a situation where I need to retrieve data from two different sources - SQL Server 2000 and VFP, the SQL and VFP tables both have the same PK, but, there the similarity ends
>
>
>SLQ table
>
>f1(PK) char(10)
>f2 int
>f3 anothertype
>.
>.
>.
>
>
>Fox table
>f1(PK) char(10)
>f2 string
>f3 anothertype
>.
>.
>.
>
>
>what I need to do is, add the VFP data to the corresponding PK record in SQL, hope that makes sense
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform