Solved

stored procedures

Posted on 1997-02-07
1
235 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

Database Solutions Engineer FAQs

In this series, we will discuss common questions received as a database Solutions Engineer at Percona. In this role, we speak with a wide array of MySQL and MongoDB users responsible for both extremely large and complex environments to smaller single-server environments.

Question has a verified solution.

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

Here is how to use MFC's automatic Radio Button handling in your dialog boxes and forms.  Beginner programmers usually start with a OnClick handler for each radio button and that's just not the right way to go.  MFC has a very cool system for handli…
Introduction: Dialogs (1) modal - maintaining the database. Continuing from the ninth article about sudoku.   You might have heard of modal and modeless dialogs.  Here with this Sudoku application will we use one of each type: a modal dialog …
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.
Monitoring a network: why having a policy is the best policy? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the enormous benefits of having a policy-based approach when monitoring medium and large networks. Software utilized in this v…

615 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