469,903 Members | 1,937 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,903 developers. It's quick & easy.

Out parameter.


I need to migrate an application written in C sharp that connects to an oracle database to Postgres.

Having issues with out parameters.

I have two parameters abc and xyz. Xyz is an out parameter.

The code for oracle uses the following line to create a parameter.

Var xyz = database.createparameter(xyz, refcursor, parameterdirection.output,null).

But I get a message saying “parameter cuz referenced is sql is an out only parameter. ).

I tried all combinations but the only combination that worked is
Database.createparameter(xyz, refcursor , “test”)

But when I run the command in pgadmin
I do a call storedprocedurename(abc value, null) then it works.

But I’m confused. I’ve read online for two days but still confused.
Nov 28 '21 #1
0 4933

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

2 posts views Thread by John A Grandy | last post: by
16 posts views Thread by hzmonte | last post: by
3 posts views Thread by Ken Cox [Microsoft MVP] | last post: by
5 posts views Thread by Trevisc | last post: by
1 post views Thread by Waqarahmed | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.