IDbDataAdapter and Fill

D

David

Hi,

Using .NET 1.1, C#

I am using a provider factory so that my app can use various database types.

I am currently using the DataAdapter from the provider to fill a dataset,
however, I would prefer to just populate a datatable. However, when I try to
fill my DataTable, I get

The best overloaded method match for
'System.Data.IDataAdapter.Fill(System.Data.DataSet)' has some invalid
arguments
and
Argument '1': cannot convert from 'System.Data.DataTable' to
'System.Data.DataSet'


Using the IDbDataAdapter, how can I fill a datatable, or am I stuck with a
dataset?

(I would prefer to use DataTable because they are not as resource hungry).

Thanks for any help you can offer.

--
Best regards,
Dave Colliver.
http://www.AshfieldFOCUS.com
~~
http://www.FOCUSPortals.com - Local franchises available
 

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

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,565
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top