DataSet and View

  • Thread starter Thread starter Krzysztof
  • Start date Start date
K

Krzysztof

How can I fill DataSet witch data from view?
Sample:
daDictionary = new OleDbDataAdapter("select * from " + viewName,
myConnection);
daDictionary.Fill( myDataSet, viewName);

What must be done to do it?

Regards
Krzysztof
 
How can I fill DataSet witch data from view?
Sample:
daDictionary = new OleDbDataAdapter("select * from " + viewName,
myConnection);
daDictionary.Fill( myDataSet, viewName);

did you open myConnection before you using it?

pozdrawiam

Przemek Sulikowski
ps. i dlaczego nie zapytales wczesniej na alt.pl.comp.lang.charp
 
Hi Selvin,

There is no need to open the connection before - Fill is smart enough to
open/close it if it is closed...

--
Miha Markic - DXSquad/RightHand .NET consulting & software development
miha at rthand com

Developer Express newsgroups are for peer-to-peer support.
For direct support from Developer Express, write to (e-mail address removed)
Bug reports should be directed to: (e-mail address removed)
Due to newsgroup guidelines, DX-Squad will not answer anonymous postings.
 
Back
Top