Skip to Main Content

ODP.NET

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Update fails

390409Apr 3 2003 — edited Apr 24 2003
I'm reading data into a DataTable with for example the SQL statement
'SELECT t1.A, t2.B from TABLE1 t1, TABLE2 t2 where t1.A = t2.B'.

I make changes to the DataTable and then I want to save the changes made using the DataAdapter's Update command, but this fails.

If I'm using the CommandBuilder I feed it with the select statement "SELECT * FROM TABLE1" for updating TABLE1.

When I call DataAdapter.Update I get the error:

"Dynamic SQL generation failed. Either no base tables were found or more than one base table was found"

I have tried creating my own update commands, but apart from being unnessecary work, this also fails with Oracle.DataAccess.Client.OracleException.

Using the Microsoft .NET Oracle client dynamic SQL generation works and update works using the exact same code.

Thanks for any help!
Björn Andersson
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 22 2003
Added on Apr 3 2003
21 comments
1,347 views