473,396 Members | 2,085 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Any idea why this overload won't work?

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.D ataTable,
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
Jun 27 '08 #1
1 1829
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.auwrote:
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.D ataTable,
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
Jun 27 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Jim | last post by:
Hey guys I DESPERATLY need some help with this small javascript i have on this website. All that it's supposed to do is change the button image once it's pressed but alas... I copy-pasted the code...
4
by: Mark | last post by:
the Following bit of code doesn't work. It seems to respond to the second, starting with 'add iif statement for Good Practice', but not to the first, starting 'add iif statement for archived' ...
4
by: Chad | last post by:
I have a link (.ascx) and that generates an Add form on that page. The autopostback dropdown is within a "If Not IsPostBack Then" statement. The form that is created is all via static html in the...
7
by: simon | last post by:
I have simple html(aspx) page, but vertical height won't work. Even if i had set the height of a table=100%, the table is not 100% height. I spend a lot of time(my real page is more...
3
by: musosdev | last post by:
Hi guys Okay, I've setup my projects to open and compile fine in VS2005 using FPSE and remote web, but it's *really* slow. So I thought I'd have a go at doing it the normal way, by loading from...
6
by: b. hotting | last post by:
Hi, I don't see why this won't work, it are 3 links, the last one (a get) does work, but the first 2 won't. i would like to use a post, through hidden input types any idea? thanks for your...
2
by: Alfa & Omega | last post by:
I have application that's using web browser (which is hidden in app but that's not the point). At some stage of working in my application I have to check HTML of current page that's in browser . ...
7
by: Eran.Yasso | last post by:
Hi, I have project that automate excel(using Excel COM) which works fine in my home. I took the project from my home to work and tried to build the project but it won't built. I get error "The...
4
by: z55177 | last post by:
My domain: http://www.esthevision.cz/ This is the cause of my problem. The template is supposed to look somewhat like this: PINK STRIPE http://themebot.com/website-templates/ht... I created an...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.