473,387 Members | 1,834 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,387 software developers and data experts.

datasets and datatables

At the risk of sounding like a Big 5 consultant, "It
depends".

1) Strongly typed datasets rock, they are faster than
untyped, use intellisense... but your reason for
wanting to use them is important. I use them every day
of my life, but I also don't use them every day of my
life and there are reasons for both.

2) How much of your process is dependent on reads vs.
updates/inserts? Datareaders are the way to go if you
aren't updating or your updates are limited. Remember,
you can always load a DR into a DT.

3) As far as having multiple Datasets. If the data is
the same and your question is for X tables, should I have
one or multiple Datasets, in general, One dataset is
preferable. However, you can use a Datarelation for
instance, from a Table in DSx and another in DSy just as
easily as you can from DSx.1 to DSx.3. One's a little
easier to code however. If the data that they hold is
different, in a Functional Dependency Sense.... then
seperate them. The way to think about a Dataset in most
instance is the same way you think of a Database. Does
it make logical sense to sepearte them? It doesn't cost
me anymore to have a Database with 300 tables or 2 with
150 tables, until I start trying to code them. Each has
it's mertis.

And, if from my experience and screw ups.... Don't
confuse DataTables with Datasets. You can relate a table
that isn't a member of a dataset to a table in another
dataset, just as easily as you can one that is in a
dataset.

Datasets aren't always necessary.

Also, if you have large query results and multiple users,
you WILL Kill your server and or network if you use
disconnected data. It's sometimes best to use a
Datareader and transfer the data into datatables.

I love ADO.NET, but it can be a great strain on
resources, and loads tend to grow which only exacerbates
the problem.

If you have specific examples, perhaps I can be of more
help.

Let me know,

Good Luck,

Bill
-----Original Message-----
I have a windows form which consumes quite a lot of data.

I am wondering what the best approach to managing the data is. I want touse strongly typed datasets, so should I :

Create one large dataset containing all the relevent table schemas andpopulate as required,
create individual datasets that encompass logical groups of tablesor does it not matter ?

Thanks
Andy
.

Jul 19 '05 #1
0 2667

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

Similar topics

45
by: cody | last post by:
I've seen an Introduction on ADO.NET with its Datasets on .NET TV and Iam now wondering how it is realized/used in real world applications. I don't believe that one would create a dataset and add...
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...
0
by: William Ryan | last post by:
At the risk of sounding like a Big 5 consultant, "It depends". 1) Strongly typed datasets rock, they are faster than untyped, use intellisense... but your reason for wanting to use them is...
11
by: Peter M. | last post by:
Hi all, I'm currently designing an n-tier application and have some doubts about my design. I have created a Data Access layer which connects to the database (SQL Server) and performs Select,...
3
by: cj | last post by:
I've used datatables and datasets before. Datasets being able to hold more than one table and datatables being only one table. My mind keeps coming up with recordsets. I can't remember how they...
16
by: Luqman | last post by:
Is it recommended to use datasets in ASP.Net 2.0 / VS.Net 2005 ? Best Regards, Luqman
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...
12
by: BillE | last post by:
I'm trying to decide if it is better to use typed datasets or business objects, so I would appreciate any thoughts from someone with more experience. When I use a business object to populate a...
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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.