data adapter

R

rodney

Hey all,

I was just wondering why in some examples in loading a
dataset I see the data adapter object and then in others
I don't see the data adapter object.

Thanks,
Rodney
 
W

William Ryan

Not sure which you are referring to. The DataAdapter is the primary way to
fill a Dataset/DataTable. Granted you can created Datatable or Dataset
programatically and populate them as such, but if you are getting the data
from a Database, and you using Disconnected mode (ie DataSet/DataTable vs.
DataReader objects), then a DataAdapter is being used. [There could be some
example out there where they are reading an XML file or similary
methodology, but my guess is that the DataAdapter is withing scope, it's
probably just not in the code snippet.

However, if they aren't using a DataSet, they may be using a DataReader or
one of the command methods like ExecuteNonQuery or ExecuteScalar, in which
case they may not be using an Adapter.


If you have a link or two, I can speak to them a little better.

Cheers,

Bill
 

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

Top