Solved

stored procedures

Posted on 1997-02-07
1
230 Views
Last Modified: 2013-12-26
How do I execute a stored procedure on a Unix platform with DB2600 from a visual basic 4.0 app using ODBCAPI's. Having a great deal of difficulty with this, and any help would be great.
thanks..bt
0
Comment
Question by:taylor020697
[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
 

Accepted Solution

by:
zxc earned 70 total points
ID: 1292184
When you want to call stored procedure in ODBC you
have to use SQL syntax:
"{ call procName param1 param2 ...}"
"{ .. }" - is important, this couse driver will not try to
look into the sql statement.

So written SQL statement you can use in SQLPrepare - SQLExecute
(for SELECT type procedure) or in SQLExecDirect (INSERT, UPDATE
DELETE or other with no resulset procedure).

I do not know DB2 but this work for other SQL DBs. If in DB2
is some other sysntax for stored procedures (but I don't think so) use this syntax with "{ .. }".

0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Detect CR LF to each line 12 185
notReplace  challenge 53 153
move a line in eclipse 3 111
Sed question 2 139
Introduction: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
In this post we will learn different types of Android Layout and some basics of an Android App.
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
Suggested Courses

751 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