Utilizing Oracle.ManagedDataAccess.Client for Oracle Package/Stored Procedure in tableview #2875
Replies: 3 comments 1 reply
-
It seems that when I introduce parameters I get this issue. I am able to use the same in a winform application with datagridview with no problem. Any Ideas ? |
Beta Was this translation helpful? Give feedback.
0 replies
-
I figured it out. I needed to specify the Oracle Data Type property ("OracleDbType.Varchar2") for the p1 and p2 parameters. Old Code that did not work:
Fixed Working Code:
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Fixed and working solution for calling Oracle Stored Procedure from Button Click :
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I am trying to utilize the Oracle.ManagedDataAccess.Client to execute Oracle Stored Procedures in an Oracle Package and view the results in a table view or datagridview if possible after a button click.
I am able to use the following to produce results in a table view:
This produces the following results:

(I have inserted overlays to hide data that is irrelevant)
However when I attempt to use an Oracle Stored Procedure from a Package which utilizes date parameters which always needs to capture the latest saturday to saturday, and a cursor. So far I am not able to get this to work. I get my messageBox.ErrorQuery and the following exception is being thrown:
Exception thrown: 'System.ArgumentException' in Oracle.ManagedDataAccess.dll
The code used for trying to execute the Oracle Store Procedure is the following:
Also I am including the respective designer file (ConsoleDB.Designer.cs) as well :
Any insight or help would be greatly appreciated.
Beta Was this translation helpful? Give feedback.
All reactions