OracleClient problems

Anyone out there using the OracleClient? I can't get the update method on the OracleDataAdapter to work.

I'm passing a simple text SQL select via the Command object and using the Fill method on the dataset. Then I add about 35 rows (79 columns in the row) and issue the Update method. The code throws no errors in either the UI or data layers, and I don't receive an error from the Oracle stored procedure, but the data never gets inserted into the table. I'll provide code details if I get a response...

Mark

[519 byte] By [markbaran] at [2007-12-16]
# 1
I am using the OracleClient and I am having a problem with the Update method. The only way I could get it to work was to use an ObjectDataSource.

Tony

TonyBermudez at 2007-9-9 > top of Msdn Tech,.NET Development,.NET Framework Data Access and Storage...
# 2
Tony,

Thanks for the response! Unfortunately, I'm not using ASP, I'm on the desktop. Hope someone can help you, I'm finding this forum to be rather useless!

Mark

markbaran at 2007-9-9 > top of Msdn Tech,.NET Development,.NET Framework Data Access and Storage...
# 3
Hi,
Ok, we need more details. Code, Visual Studio version, etc...
Please post it...Big Smile

cheers,
Paul June A. Domag

PaulDomag at 2007-9-9 > top of Msdn Tech,.NET Development,.NET Framework Data Access and Storage...
# 4
Paul,

Once again, I thank you for the post, but I stumbled onto a solution. I had called the .AcceptChanges method prior to calling the data tier procedure. The RowState property of all the new rows that I added were changed from "Added" to "Unchanged". Thus, the stored procedure didn't throw an error because there were no rows to work on.

Thanks,

Mark

markbaran at 2007-9-9 > top of Msdn Tech,.NET Development,.NET Framework Data Access and Storage...

.NET Development

Site Classified