How to configure C# Typed Datasets when calling OracleDataAdapter.Update() on Oracle Stored Procedur

Posted by John_D on Stack Overflow See other posts from Stack Overflow or by John_D
Published on 2008-10-26T19:28:11Z Indexed on 2010/03/17 19:01 UTC
Read the original article Hit count: 242

Filed under:
|
|

I am writing a C# Windows Forms application which calls Oracle stored procedures.

I chose to use typed datasets in the application, these correctly populate various datagrids, but I am having trouble when invoking the UpdateCommand or the InsertCommand. I have manually coded these commands because a) I am using Oracle stored procedures and b) I don't trust CommandBuilder ;)

I am using VS2008 and Oracle 9i

I don't have trouble executing stored procedures in SQL Server or Oracle when simply calling them from the .ExecuteNonQuery command; neither do I have problems executing SQL statements directly and updating the database. The problems only arise when executing the changed rows with OracleDataAdapter.Update(). I am specifying the correct set of rows (added, changed etc.)

The main error I am getting (after a lot of experimentation with increasingly simpler SPs finishing with just one int parameter) is "PLS-00306: wrong number or type of arguments in call to 'PROCNAME'"

I have tried prefixing the Oracle parameter both with ':' and without.

Suffice to say I am losing the will to live. Has anyone any more ideas I could try next?

Thanks

© Stack Overflow or respective owner

Related posts about c#

Related posts about Oracle