Solved

Stored Procedures

Posted on 1998-01-23
1
358 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Introduction The parallel port is a very commonly known port, it was widely used to connect a printer to the PC, if you look at the back of your computer, for those who don't have newer computers, there will be a port with 25 pins and a small print…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

910 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

20 Experts available now in Live!

Get 1:1 Help Now