Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / April 2008

Tip: Looking for answers? Try searching our database.

IDbDataAdapter and Fill

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
David - 22 Apr 2008 22:22 GMT
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.

Signature

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

Peter Bromberg [C# MVP] - 23 Apr 2008 01:56 GMT
Resource- wise, there isn't that much difference between a DataSet containing
a single DataTable and a plain DataTable. I wouldn't sweat it.
-- Peter
To be a success, arm yourself with the tools you need and learn how to use
them.

Site: http://www.eggheadcafe.com
http://petesbloggerama.blogspot.com
http://ittyurl.net

> Hi,
>
[quoted text clipped - 19 lines]
>
> Thanks for any help you can offer.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.