Solved

Stored Procedures

Posted on 1998-01-23
1
361 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them. Thursday, July 13, 2017 10:00 A.M. PDT

Question has a verified solution.

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

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…
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

729 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