Imran,
You might be interested in the assembly I've been working on at
http://www.queryadataset.com. It lets you perform complex SQL SELECT
statements including UNION, JOINS, GROUP BY, HAVING, ORDER BY, sub-queries,
functions, aggregates etc against the tables in a dataset.
In your case, you'll want to do a UNION on the three tables in the dataset:
DataSet ds = new DataSet;
//populate with data from two SQL server databases and MySQL.
string sql = "SELECT * FROM source1 UNION SELECT * FROM source2 UNION SELECT
* FROM source3";
DataView dv = QueryADataSet.DsCommand.Execute(sql, ds);
Its a lot easier than writing ADO.NET code by hand.
Hope this helps
Adrian Moore
http://www.queryadataset.com
"Imran Aziz" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hello All,
> I have to combine search results from three different data sources, two
> are separate databases in an SQL server one is a mySQL server database. I
> get the search results from each of them in my separate classes. Now I
> need to combine them and remove duplicates how do I work with that ?
>
> say
> DataSet ds1 has now got three tables source1, source2 and source3 how do I
> perform an in-memory query on the dataset tables to get a view that
> removes duplicates ?
>
> Imran.
>