Solved

stored procedures

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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

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…
Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
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.
This video discusses moving either the default database or any database to a new volume.

706 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

19 Experts available now in Live!

Get 1:1 Help Now