OdbcDataReader

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi All,

Just looking for a confirmation on something (in VS 2003).

Can an OdbcDataReader be populated only by a ExecuteReader on an OdbcCommand?

Thanks,
pagates
 
Hi,

An OdbcDataReader is indeed returned by OdbcCommand.ExecuteReader

It does not have any public constructor, so yes, the class cannot be created
using "new"


What is the problem with that?

cheers,
 
Hi Ignacio,

No real "problem." I am using a project that gets data either through Odbc,
or through another mechanism (a property allows the user to choose which
method, per a requirement in our software). There is a wrapper around the
various communication mechanisms, and I wanted to make it as generic as
possible.

Since I can do what I need with a DataTable, there is no need to pursue this
further. I was just curious at this point.

Thanks,
Paul
 
Back
Top