Unix Technical Forum

VB 6.0 calling DB2 7.2 stored procedure

This is a discussion on VB 6.0 calling DB2 7.2 stored procedure within the DB2 forums, part of the Database Server Software category; --> Greetings Machine : Pentium III Os : Windows 2000 Prodcut : Visual Basic 6.0 DB2 EE 7.2 I'm doing ...


Go Back   Unix Technical Forum > Database Server Software > DB2

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-26-2008, 03:39 PM
Uthuras
 
Posts: n/a
Default VB 6.0 calling DB2 7.2 stored procedure

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-26-2008, 03:39 PM
Larry Edelstein
 
Posts: n/a
Default Re: VB 6.0 calling DB2 7.2 stored procedure

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

Larry Edelstein

Uthuras wrote:

> 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


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-26-2008, 03:39 PM
Mark Yudkin
 
Posts: n/a
Default Re: VB 6.0 calling DB2 7.2 stored procedure

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@hotmail.com> wrote in message
news:2ebe688f.0310121910.2ae1a2b3@posting.google.c om...
> 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



Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
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
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 05:05 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com