Solved

Stored Procedures

Posted on 1998-01-23
1
359 Views
Last Modified: 2010-04-04
Is there any way of calling a (Oracle) stored procedure as part of the UpdateSQL queries?  For example, I would like to call a stored proc instead of specifing a "Insert" command for the InsertSQL.  
After a little work, it looks like it works (it executes and is committed to the database), however I get a "Update Failed' exeception generated from the TUpdateSQL.ExecSQL function.  This is because the 'Rows effected' is 0 when returning from a stored proc.  Could I subclass the TUpdateSQL class so that I can leave out the "if RowsAffected <> 1" statement?
0
Comment
Question by:gjbaker
1 Comment
 
LVL 1

Accepted Solution

by:
millerw earned 100 total points
ID: 1357374
There is an example of how to do this on the Borland site.

See the following address:

http://www.borland.com/devsupport/bde/delphifiles.html

Here is what it reads about the example:
BDE API stored procedure component: (Created Jan 26th, 1998) This example allows the user to call a stored procedure in any of the three BDE API possible ways. This component can be used to workaround problems such as the MSACCESS crash with queries that have parameters. Anyone who wants to call procedures from Delphi with BDE API calls should look at this example.

Hope that helps,
Scott
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now