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

Difference Between Typed Dataset and Untyped Dataset

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

Nov 19 '05 #1
2 5067
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"

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"thomson" <sa**********@yahoo.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
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

Nov 19 '05 #2
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

"thomson" <sa**********@yahoo.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
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

Nov 19 '05 #3

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

Similar topics

1
by: Job Lot | last post by:
I am confused how strongly typed dataset is different from un-typed dataset. Is there any good link explaining pros and cons of both? Which one should be used preferably?
5
by: DraguVaso | last post by:
Hi, Something I don't understand about a Typed DataSet: When a value in the DataSet is DBNull, it throws this error: "Cannot get value because it is DBNull". But aren't Typed DataSets...
1
by: Nedu N | last post by:
Hi All, I am facing problem in copying content of table from a untyped dataset into to a table inside the typed dataset. I wanted to copy the data into typed dataset in order to ease the further...
3
by: Rakesh Rajan | last post by:
Hi, I have a method, which opens a connection, creates an untyped datable, fills it and returns it back. I have defined a typed datatable in my application as well. For some reasons, I have to...
2
by: Nedu N | last post by:
Hi Techies, I am facing problem in copying content of table from a untyped dataset into to a table inside the typed dataset. I wanted to copy the data into typed dataset in order to ease the...
1
by: Optimus | last post by:
Hi everyone, I currently develop an application in vs.net 2005 with vb.net. I was trying to use typed dataset and I've got in trouble for converting untyped dataset into Typed DataSet. I don't...
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......
2
by: =?Utf-8?B?UGV0ZXI=?= | last post by:
When I'm debugging a Windows Forms Application in VS2005 IDE, how can I check whether a dataset is strongly typed or not in Watch window? Are there some properties or methods only exist for...
1
by: zlf | last post by:
Hello As a known issue, WCF does not allow to transfer typed DataSet. So I have to copy all data from typed DataSet to untyped DataSet(same table names, column names and row data). What is the...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...
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.