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 December 18th, 2003, 10:48 AM
Registered User
 
Join Date: Dec 2003
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Merging dataset.

I am trying to merge two dataset containing same datatype information.
One dataset is filled by adapter using SQLserver connection and other dataset is coming from oracle dataset.
i am using following code.

 Dim FinalDS As New DataSet()
 FinalDS.merge(SQLds)
 FinalDS.merge(Orads)

 but FinalDS at the end contains only SQlds data
(It contains only ORAds data if i merge that one first)

I checked the datatypes of columns in the datasets and those are identical. What else could be problem.

PS : i was able to merge two datasets if they both come from either Oracle or SQL server.

Thanks
Sanjay
 
Old December 30th, 2003, 07:55 AM
Registered User
 
Join Date: Dec 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to e_itguru Send a message via Yahoo to e_itguru
Default

perform your action as per following logic:
Dim FinalDS As New DataSet()
FinalDS.merge(SQLds)
FinalDS.merge(Orads, true)

Hope this will solve your problem

 
Old December 30th, 2003, 01:56 PM
Registered User
 
Join Date: Dec 2003
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I tried that and it doesn't work; Same results.
Thanks
Sanjay





Similar Threads
Thread Thread Starter Forum Replies Last Post
dataset merging and try catch johnsonlim026 Visual Basic 2005 Basics 0 June 7th, 2007 02:25 AM
Converting a untyped dataset to a typed dataset daphnean Visual Studio 2005 0 July 13th, 2006 01:16 AM
Dataset merging and saving to database Talarin3 ADO.NET 8 April 19th, 2006 11:30 AM
Re: SQL Server dataset to ACCESS dataset dazzer ADO.NET 0 March 22nd, 2004 05:28 AM
Merging Data Mitch SQL Server 2000 0 January 2nd, 2004 05:42 PM





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