![]() | ![]() Products ![]() ![]() ![]() ![]() |
Home » Technical Support » ElevateDB Technical Support » Support Forums » ElevateDB General » View Thread |
Messages 1 to 2 of 2 total |
![]() |
Sat, Feb 14 2009 4:50 AM | Permanent Link |
"Hedley Muscroft" | Hi Tim,
If I do the following :- EDBDataAdapter adap = new EDBDataAdapter("select * from occupation", con); EDBCommandBuilder cb = new EDBCommandBuilder(adap); cb.GetUpdateCommand(); .... an InvalidOperationException is thrown which says "SelectCommand property needs to be initialized." If I do the following then it's ok :- EDBDataAdapter adap = new EDBDataAdapter("select * from occupation", con); EDBCommandBuilder cb = new EDBCommandBuilder(); cb.DataAdapter = adap; cb.GetUpdateCommand(); It looks like the EDBCommandBuilder constructor which accepts a DataAdapter is not initializing the DataAdapter correctly. Regards, Hedley |
Sat, Feb 14 2009 9:06 PM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. ![]() | Hedley,
<< ... an InvalidOperationException is thrown which says "SelectCommand property needs to be initialized." >> I'll check it out. -- Tim Young Elevate Software www.elevatesoft.com |
This web page was last updated on Wednesday, August 14, 2024 at 03:12 PM | Privacy Policy![]() © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? ![]() |