Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Stored Procedure Return 1

Status
Not open for further replies.

daikos

Programmer
Jan 7, 2010
7
0
0
BR
Good evening folks.

I have an Stored Procedure in my database that returns only one integer but how do I "get" this result/return in Clarion?

I have tried many ways like:

Dummy{PROP:SQL} = 'select last_client();'
Dummy{PROP:SQL} = 'call last_client();'
Dummy{PROP:SQL} = 'select * from last_client();'
Dummy{PROP:SQL} = 'select last_client from last_client();'

But still don't work.

Best regards.
 
Hi!


RetVal LONG


BIND('RetVal', RetVal)

Dummy{PROP:SQL} = '&RetVal = CALL dbo.last_client();'

or

Dummy{PROP:SQL} = '&RetVal = NORESULTCALL dbo.last_client();'

IF NOT ERRORCODE()
! process value in RetVal
END

Read more on "Using Embedded SQL" in the help.

Regards
 
Thanks ShankarJ!

Works great as always.

Best Regards.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top