Link to home
Start Free TrialLog in
Avatar of smacca
smaccaFlag for Australia

asked on

How to call an Oracle function directly using OLEDB provider (or otherwise)?

I would like to call an Oracle function directly using OLEDB (or Oracle) connection|command objects?
I have seen examples using OLEDB and "{ call ? ? }" syntax but need one specific to below.

The Oracle function has the following signature is as follows:


                          FUNCTION get_sscc
                            RETURN VARCHAR2


Any help appreciated.
Cheers.
Avatar of Devastated
Devastated
Flag of United Kingdom of Great Britain and Northern Ireland image

Hi,

there is a forum at http://forums.asp.net/967327/ShowPost.aspx that discusses this in some detail;  ajagadeesh presents an oledb method for accessing oracle functions.

p.s. The policy of experts-exchange prohibits me infringing copyrights by copying/pasting code from another website to this website.

Hope this helps.
ASKER CERTIFIED SOLUTION
Avatar of slyckboy
slyckboy

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of smacca

ASKER

Which execute statement - I assume ExecuteNonQuery
Avatar of slyckboy
slyckboy

ExecuteNonQuery is correct.  Sorry I omitted that.  It should come before the

strReturnedValue = cmd.parameters.add("returnvalue").value