Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

stored procedures

Posted on 1997-02-07
1
Medium Priority
?
241 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 140 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
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.
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Suggested Courses

704 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