I have tried to retreive info but I am unable to. But I am able to connect
to the DB.
"Icedragon" <ryka...@home.com> wrote in message
news:#8T29V1tBHA.2056@tkmsftngp03...
AFAIK, looks like OleDBDataAdapter would be a better
choice for the application type that you describe.
Though OleDBDataReader is certainly more lightweight
than the OleDBDataAdapter, you'd use it when you need
to navigate the recordset with foward-only, read-only access.
Since you need to modify the data source as well,
OleDBDataAdapter would be the way to go.
Regards,
Aravind C
"Icedragon" <ryka...@home.com> wrote in message
news:#8T29V1tBHA.2056@tkmsftngp03...
"Icedragon" <ryka...@home.com> wrote in message
news:#8T29V1tBHA.2056@tkmsftngp03...
ADO.NET is a deliberate attempt to encourage developers to use the
disconnected model as disconnected data is more scalable because it reduces
the demand on database servers.
The DataSet is an in-memory cache of data retrieved from a database and
process it in a DISCONNECTED fashion.
DataSets are the result of bringing together ADO and XML. A DataSet does
not know about databases or SQL. There are two standard ways of getting
tables of data into a DataSet, One is by using a 'OleDBDataAdapter' object
that turns the results of a database query into XML.
The second is to work directly Read and Write XML data and schemas, and can
work closely with an XMLDataDocument object.
The OleDbDataAdapter acts as an interface between the DataSet & the
underlying databace for any data retrieval, updation, or deletion.
OledbDataReader class offers higher performance than the DataSet class
because OledbDataReader reads data directly from a database connection.
There are two main situations where you would consider using DataReaders.
If you use an application development model where you hand-code your user
interface rather than use data binding, and hand-code your updates using SQL
or stored procedures, then the DataReader provides an efficient tool for
accessing relational data. For everyone else, DataReaders are useful where
processing requires that you look up state held in a database, but you don't
need scrolling, binding, XML or automatic updating capabilities. Good
examples include populating a list or validating a product code.
Regards
Akila
http://www.Synergetics-India.com
"Icedragon" <ryka...@home.com> wrote in message
news:#8T29V1tBHA.2056@tkmsftngp03...
Thanks.
Bipin Joshi
-------------------------------------
Software Developer | Author
.Net Simplified @ Bipin Joshi.com
http://www.bipinjoshi.com
-------------------------------------
"Icedragon" <ryka...@home.com> wrote in message
news:#8T29V1tBHA.2056@tkmsftngp03...
Whereas, OLEDBDataAdapter is used when u want to work on the data like
edit,insert,delete. its more better as u have the flexibility/option to work
on the data though its slow but its a lot useful, moreover it acts like
disconnected recordset.
which one is better depends on your application & what u want. if you give
the user full access of ur data, adapter is good otherwise for viewing/data
retrieve on reader is good.
there are several issues & details related to ADO.NET & XML data access
methods are avaibale.If you need more help, you can mail me.
bye,
santu