Difference Between Typed Dataset and Untyped Dataset

T

thomson

Hi All,
What is the difference between a typed dataset and an untyped
datset,
Where can be this used actually, I mean in which situation
which has to be used,
In case anyone has got some articles please let me know
Thanks in Advance

Regards

thomson
 
S

Steve C. Orr [MVP, MCSD]

Typed datasets are more self documenting and easier to work with at design
time (overall).

MyTypedDataSet.MyDoctor.FirstName = "Fred"
vs.
MyUntypedDataSet.Tables("Doctors").Row(0).Item(1)="Fred"
 
E

Eliyahu Goldin

With typed datasets you are the one who tells what to do. You specify
exactly what you want, no matter if it is not exactly what you have in the
database.

With untyped dataset you have to follow the database structure. The database
tells you what to do. The select statements may return much more columns
that you need, or with different names.

As Steve has mentioned, typed datasets give you nice automatically-generated
classes with properties and method suited exactly for your needs.

For more or less serious project you would likely want to use typed datasets
only. For a simple task, like, demo or testing something, you can go with
untyped ones.

Eliyahu
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top