Any idea why this overload won't work?

D

damiensawyer

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
 
D

damiensawyer

Sorry everyone, please ignore.

DataTable oDT should be a Dataset.

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

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

Top