472,127 Members | 1,683 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,127 software developers and data experts.

Out parameter.

Hello

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 9233

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
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.