PC Review


Reply
Thread Tools Rate Thread

Any idea why this overload won't work?

 
 
damiensawyer@yahoo.com.au
Guest
Posts: n/a
 
      23rd Jun 2008
Hi,

I've recently moved up to Framework 3.5. For some reason, a method
signature on dataAdaptor.fill that used to work has stopped.

DataTable oDT = new DataTable();
SqlDataAdapter oDA = new SqlDataAdapter(SQLLoadString,
clsGlobalFunctions.oSQLConnection);
oDA.Fill(oDT, "Movies"); //Error

"The best overloaded method match for
'System.Data.Common.DataAdapter.Fill(System.Data.DataTable,
System.Data.IDataReader)' has some invalid arguments"

The strange thing is, in the Intellisense constructor (3 of 5) says
that the method can take (Dataset dataset, string srcTable).

I'm confused.

Thanks in advance for any help,


Damien
 
Reply With Quote
 
 
 
 
damiensawyer@yahoo.com.au
Guest
Posts: n/a
 
      23rd Jun 2008
Sorry everyone, please ignore.

DataTable oDT should be a Dataset.

... that'll teach me to stay up coding past midnight....


On Jun 23, 12:48*pm, "damiensaw...@yahoo.com.au"
<damiensaw...@yahoo.com.au> wrote:
> Hi,
>
> I've recently moved up to Framework 3.5. For some reason, a method
> signature on dataAdaptor.fill that used to work has stopped.
>
> * * * * * DataTable oDT = new DataTable();
> * * * * * * SqlDataAdapter oDA = new SqlDataAdapter(SQLLoadString,
> clsGlobalFunctions.oSQLConnection);
> * * * * * * oDA.Fill(oDT, "Movies"); //Error
>
> "The best overloaded method match for
> 'System.Data.Common.DataAdapter.Fill(System.Data.DataTable,
> System.Data.IDataReader)' has some invalid arguments"
>
> The strange thing is, in the Intellisense constructor (3 of 5) says
> that the method can take (Dataset dataset, string srcTable).
>
> I'm confused.
>
> Thanks in advance for any help,
>
> Damien


 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Any idea how to get this API to work? codercode Microsoft VB .NET 4 6th Sep 2007 11:28 AM
Idea - Will it work? =?Utf-8?B?ZWdhbG9pcw==?= Microsoft Outlook Discussion 5 3rd Apr 2007 12:22 PM
Any idea how to work? craig@help Microsoft Excel Worksheet Functions 0 26th Jul 2006 12:29 PM
Have no idea why this does not work....... please help =?Utf-8?B?bWl4?= Microsoft Access Queries 2 10th Aug 2005 08:37 PM
Should this type of method overload work in C#? =?Utf-8?B?RGF2ZSBSYXNraW4=?= Microsoft C# .NET 13 20th Apr 2005 10:20 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:53 PM.