473,325 Members | 2,860 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,325 software developers and data experts.

Multiple DataSets : Any Better Approach ??

Currently we use a data adapter and a dataset for fetching
data from multiple data source.
Once we populate the data from each data source we
merge all datasets into a single dataset.
Hence if there are 50 data retrieved from 50 different
sources, we will have to have 50 adapters and datasets.

We need to know if there are any better approach to this
solution ?

Any suggestions will be highly Appreciated.

Jul 19 '05 #1
3 3976
Personally, I would think that you'd have a few different
data adapters. Depends on your data sources. You can
always close the data adapter and change the connection
string to point to your new datasource. then just fill
the dataset. Once it's in the dataset it's just data.
Not specific to any DB.

But that could eat up a lot of memory! Have you
considered transforming them into one nice database using
DTS on SQL server? That way it would be a LOT faster.
And you can create indexes on the data much easier (in
your DTS package)
-----Original Message-----
Currently we use a data adapter and a dataset for fetchingdata from multiple data source.
Once we populate the data from each data source we
merge all datasets into a single dataset.
Hence if there are 50 data retrieved from 50 different
sources, we will have to have 50 adapters and datasets.

We need to know if there are any better approach to this
solution ?

Any suggestions will be highly Appreciated.

.

Jul 19 '05 #2
Kaveri,
The only thing I would seriously consider changing it the number of DataSet.
Why do you have more than 1?

I'm assuming each DataAdapter is unique to a distinct table. If the tables
are the same & just different machines, then I would probably have a single
DataAdapter also, and change the connection as Scott suggests.

David Sceppa's book "Microsoft ADO.NET - Core Reference" from MS press
provides a plethora of information on Data Adapters, Data Sets and every
thing else ADO.NET!

Hope this helps
Jay

"Kaveri" <di********@hotmail.com> wrote in message
news:08****************************@phx.gbl...
Currently we use a data adapter and a dataset for fetching
data from multiple data source.
Once we populate the data from each data source we
merge all datasets into a single dataset.
Hence if there are 50 data retrieved from 50 different
sources, we will have to have 50 adapters and datasets.

We need to know if there are any better approach to this
solution ?

Any suggestions will be highly Appreciated.

Jul 19 '05 #3
You shouldn't need 1 dataset for each dataAdapter. When you call the fill
method of a given dataAdapter, tell it to fill the same dataSet you've
already established, just specify a new table name for the dataTable that
will be created.

Now, you won't have more than one DataSet in the first place and you won't
have to merge 50 DS's into one.
"Kaveri" <di********@hotmail.com> wrote in message
news:08****************************@phx.gbl...
Currently we use a data adapter and a dataset for fetching
data from multiple data source.
Once we populate the data from each data source we
merge all datasets into a single dataset.
Hence if there are 50 data retrieved from 50 different
sources, we will have to have 50 adapters and datasets.

We need to know if there are any better approach to this
solution ?

Any suggestions will be highly Appreciated.

Jul 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Dinesh | last post by:
Currently we use a data adapter and a dataset for fetching data from multiple data source. Once we populate the data from each data source we merge all datasets into a single dataset. Hence if...
2
by: malcolm | last post by:
Hello, We have a robust (.NET 1.1 c# winforms) client-server application that utilizes many typed DataSets, typed DataTables and typed DataRows. Our application is a series of windows and popup...
3
by: lee_mcknight | last post by:
I am using Crystal Enterprise V9. I have a report that needs to have multiple datasets as the datasource(s) on a single subreport (some common lookup data I need to join to is stored in a seperate...
3
by: Yul | last post by:
Hi, We are in the process of designing an ASP.NET app, where a user will enter some 'Customer ID' to be queried in the database. If the ID is valid, several stored procedures will be called to...
3
by: Kaveri | last post by:
Currently we use a data adapter and a dataset for fetching data from multiple data source. Once we populate the data from each data source we merge all datasets into a single dataset. Hence if...
4
by: Ronald S. Cook | last post by:
I've always used untyped datasets. In a Microsoft course, it walks through creating typed datasets and harps on the benefits. It has you drag all these things around ..wizard, wizard, wizard......
25
by: Penelope Dramas | last post by:
Hello, I'm in a front of very serious .net redesign/rewrite of an old VB6 application. I had been asked to make it .NET 2.0 and would like to ask couple of questions regarding data access as...
0
by: S.Tedeschi | last post by:
Hi all; as posted some days ago, I'm converting an on-line app; I used to heavily rely on strongly-typed DataSets directly dropped onto pages, and so viewed by code(-behind) as well. In the next...
1
by: Mark Baldwin | last post by:
Steven Thanks for your reply, however the typed datasets are defined in the web service and there seems to way to open the partial class code window - double clicking on the design surface does...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.