INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

How to call a plsql storeprocedure in delphi

How to call a plsql storeprocedure in delphi

(OP)
I'm an absolute beginner with delphi so I'm sorry in advance for my misunderstanding.
I have to call a plsql stored procedure within a delphi program. The stored procedure returns an integer and the call should do it as well.
I haven't found so much documentation on the web about TADOcommand, TADOquery ecc. Can someone give me an explanation/sample/anything about it?
Thanks

RE: How to call a plsql storeprocedure in delphi

Quote:

The stored procedure returns an integer

If it returns a value, then technically, it's a stored function, thus you can use the function in the select or where portion of an SQL statement.

i.e.

CODE

select A, B, MyStoredProc(param1, paramn) 
from tablename
where A = 'some value'; 

RE: How to call a plsql storeprocedure in delphi

(OP)
I have lots of UPDATE, INSERT and SELECT from multiple tables inside that "function". Should I try a select anyway?

RE: How to call a plsql storeprocedure in delphi

Quote:


I have lots of UPDATE, INSERT and SELECT from multiple tables inside that "function". Should I try a select anyway?
I suppose that is not advisable. Here is a link I've found on running a stored proc from Delphi using ADO components. Hopefully, it can help.

RE: How to call a plsql storeprocedure in delphi

(OP)
Thank you! That's a page I didn't have found before.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close