473,408 Members | 2,813 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,408 software developers and data experts.

Role of Data Adapter in ADO.NET??

Hi all

I have read 5-6 books just to find what is the job of Adaptor object in
ADO.NET. Non of them clearly defines the job, all of them says that it
is used to get data from datasource, then what is the job of Command
object??

Here is what i know, very simple and prime responsibilities

Connection = Link with Data Source
Command = To run the queries(all types of queries) and stored
procedures
DataSet and DataReader = To store the local copy of data (i know the
difference b/w DataSet and DataReader)

What is the prime responsibility/role of Data Adapter class in ADO.NET
??

Dec 12 '05 #1
5 2478
>
What is the prime responsibility/role of Data Adapter class in ADO.NET


Interact with data which has on the Net program part side the format
dataset, datatable, datarow (the last only for update insert and create) and
which is retrievable by using SQL statements.

Beside that it has some overloaded functions.

I hope this helps,

Cor
Dec 12 '05 #2
Thanks for the Reply
But, i couldn't got it clearly

In ADO 6.0, there are three classes Connection, Command and Recordset
Without any one of these, you can't avail all
manupulating-features(select, update,delete, execution of SPs and
Functions) of the DBMS, apart from formatting something or minimizing
development effort( like Delete command can directly be executed by
Connection rather than Command)

Now, in ADO.NET, there are three classes too, Connection, Command and
say Recordset(DataSet + DataReader)
I have seen an example of filling DataSet through DataAdapter

Can i avail all manupulating-features through these classes or Data
Adapter is required for any one of above-listed actions ??

Please clear this thing or atleast give any link/book name which
clearly defines functions of these classes
(Thanks) ^ (Thanks)

Dec 14 '05 #3
Atif,

You make the standard exceptions, which are wrong.

A Recordset can be compared the most with a DataTable.

A datatable is a disconnected recordset, which can be used wrapped inside a
dataset or standalone. A dataset can holds more datatables and the relations
between them.

A DataAdapter is a class, with what you can read data from a database and
put it in a dataset or a datatable. The dataadapter is as well the medium to
update/delete/inserts DataSets, DataTables, DataRows. There is one
overloaded function in the dataadapter to convert from a recordset to a
dataset (in fact one datatable inside a dataset)

Beside that you have a lot of instructions to do database actions using SQL.

As last there is as well a datareader that can read row by row from a
Database.

Just a short explanation I cannot write an AdoNEt book here.

However it is much more than what you could do with classic Ado, therefore
it is better not to compare and absolute better not to use names that are
related to that. It gives only misunderstandings.

I hope this gives a slight idee?

Cor
Dec 14 '05 #4
Thanks Cor, it was helpful
Please name any good book/or any source for .NET which would elaborate
What not How
Thanks again

Dec 15 '05 #5
Atif,

The most known writers in the dotnet newsgroups for AdoNet are David Sceppa
and Bill Vaughn.

Just search in Google on their names and "AdoNet books".

I did not read their books.

However they are both more or less active in the newsgroup ADONET.

Seeing there answer in that newsgroup, than I expect that Davids book
fullfils the most your question about "What".

However the last is just a gues.

Cor
Dec 15 '05 #6

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

Similar topics

3
by: craig | last post by:
I am working on my first .NET development project that involves custom role-based security per the project requirements. This lead to a general design issue this week that really caused us some...
5
by: pmud | last post by:
Hi, I need to display columns in a data grid based on 7 different queries. Now I have 32 questions: 1. Is it possble to have 1 single data adapter with 7 queries & 1 data set or do I need to...
5
by: Rick | last post by:
The data adapter wizard allows you to add more than one table, but that doesn't seem to work right when setting up a dataset. Some of the documentation I have read states that only one table...
4
by: William | last post by:
After much frustration I was able to update my data store via code only. Using the data adapter was the only way I was able to set up all the objects written in my code. Basically, I cheated by...
9
by: Brad | last post by:
I have written some code to manipulate data/records in a MASTER (order header) and DETAIL (order details) tables. What I have written is too extensive to post but essentially trying to: 1....
2
by: simon | last post by:
I use my functions to create adapter and fill dataSet: funkcije.createAdapter("c_CPOSkupaj", False, myParams).Fill(ds, "brezReklam") If I use this function another time to fill dataSet with...
12
by: Randy | last post by:
Hi, Trying to pass along a table row delete to the datasource, but I'm crashing. Here is the code: Private Sub btnDeleteIngr_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles...
6
by: Suresh | last post by:
Hi All, I am fetching a dataset from the database under some condition. After this I create a data table. Traverse in the original dataset & add each row to created data table as it is through...
6
by: insirawali | last post by:
Hi all, I have this problem, i need to know is there a way i cn use the data adapter's update method in this scenario. i have 3 tables as below create table table1{ id1 int identity(1,1)...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.