I have an stored procedure that get executed after insert and update. I need to print all variables values but only when user press on a print button (user request)
In theory what is the best way to return variable values ? I use Delphi.
thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
There are two ways to return some values from SP:
1) make selectable SP:
Note usage of SUSPEND keyword. You can access return values of selectable procedure using regular SELECT operator:
2) make executable SP:
Then you need TIBStoredProc component in your Delphi code in order to invoke the procedure and gets its return parameters. Use ParamByName method.