Chris Hale's Blog

Peer pressured into blogging. No good can come of this.

<July 2008>
SuMoTuWeThFrSa
293012345
6789101112
13141516171819
20212223242526
272829303112
3456789


Navigation

Cohorts

My User Group

My Company

Subscriptions



Possible Bug in ADO.NET??

So here's an issue I ran across this last week. I have an windows service that connects to an oracle 9i database. It's a pretty simple app really, all it needs to do is select from tables in the database and insert into the tables. 5 of the 6 inserts work just fine. However  the last one only inserts the last record in the dataset. The one major difference between this table and the other 5 is it has a field in it that's a reserved word in oracle “UID“. The dataset is strongly typed and I've attemped the insert (adapter.update) using the oracle data provider and the oledb provider for oracle. Both yield the same results. I even went so far as to write an oracle stored proc to handle the insert instead of raw SQL.

FYI, if I change the reserved field name to something other than the reserved name the insert works like a charm. Also, the select statement works just fine retrieving all records from the table. So the problem is only with the insert.

So what say you people? Has anyone come across this before?

posted on Friday, August 20, 2004 1:54 PM by chale





Powered by Dot Net Junkies, by Telligent Systems