dbTalk Databases Forums  

VB 6.0 calling DB2 7.2 stored procedure

comp.databases.ibm-db2 comp.databases.ibm-db2


Discuss VB 6.0 calling DB2 7.2 stored procedure in the comp.databases.ibm-db2 forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Uthuras
 
Posts: n/a

Default VB 6.0 calling DB2 7.2 stored procedure - 10-12-2003 , 10:10 PM






Greetings

Machine : Pentium III
Os : Windows 2000
Prodcut : Visual Basic 6.0
DB2 EE 7.2

I'm doing some testing on VB application calling DB2 stored procedure.
There seem to be not much info available on how to invoke the call. In
fact, most of
the example related to VB calling DB2 OS/390 and z/OS. Has anyone done
sample
VB application that invoke DB2 stored procedure on DB2 for windows?

A sample code or a site for reference would help me get start with.
Thanking
in adavance and hope to get prompt feedback on this.

Thanks again

Uthuras

Reply With Quote
  #2  
Old   
Larry Edelstein
 
Posts: n/a

Default Re: VB 6.0 calling DB2 7.2 stored procedure - 10-12-2003 , 10:23 PM






Have you consulted "DB2 Universal Database in Application Development
Environments" at http://www.redbooks.ibm.com ?

Larry Edelstein

Uthuras wrote:

Quote:
Greetings

Machine : Pentium III
Os : Windows 2000
Prodcut : Visual Basic 6.0
DB2 EE 7.2

I'm doing some testing on VB application calling DB2 stored procedure.
There seem to be not much info available on how to invoke the call. In
fact, most of
the example related to VB calling DB2 OS/390 and z/OS. Has anyone done
sample
VB application that invoke DB2 stored procedure on DB2 for windows?

A sample code or a site for reference would help me get start with.
Thanking
in adavance and hope to get prompt feedback on this.

Thanks again

Uthuras


Reply With Quote
  #3  
Old   
Mark Yudkin
 
Posts: n/a

Default Re: VB 6.0 calling DB2 7.2 stored procedure - 10-13-2003 , 01:58 AM



Provided you use the MS OLE DB over ODBC driver with the IBM ODBC driver,
there is nothing special about calling stored procedures from VB to DB2, not
are there any real problems.

The easiest technique is the use the VB6 Data Environment Designer, this
lets you build your calling code via point-and-click, and provides you with
canned code that will do the hard work (connection setup, queries and SP
calls). Samples make little sense as it's all mouse clicking. Tutorial
information on this mouse clicking is in the VB6 documentation (uses SQL
Server, but that's essentially irrelevant as the alterations are obvious -
see my first paragraph).

BTW, within VB6, you also have access to the DB2 Stored Procedure Builder
Addin, but this is more for the "other side" of the problem


"Uthuras" <uthuras (AT) hotmail (DOT) com> wrote

Quote:
Greetings

Machine : Pentium III
Os : Windows 2000
Prodcut : Visual Basic 6.0
DB2 EE 7.2

I'm doing some testing on VB application calling DB2 stored procedure.
There seem to be not much info available on how to invoke the call. In
fact, most of
the example related to VB calling DB2 OS/390 and z/OS. Has anyone done
sample
VB application that invoke DB2 stored procedure on DB2 for windows?

A sample code or a site for reference would help me get start with.
Thanking
in adavance and hope to get prompt feedback on this.

Thanks again

Uthuras



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.