Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsVB SyntaxEnterprise DevelopmentDatabase AccessControlsCOMWin APICrystal ReportDeploymentGeneralGeneral 2
Related Topics
VB.NET / ASP.NETMS SQL ServerMS AccessOther Database ProductsMore Topics ...

VB Forum / General 2 / April 2004



Tip: Looking for answers? Try searching our database.

running a DB2 Stored Procedure from a VB 6 Program

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Ken Vandergriff - 23 Apr 2004 13:09 GMT
Does anyone have some example code that will execute a DB2 Stored
Procedure that has one input parameter (long) and returns a rowset?

Thank you

<kenneth.vandergriff@cigna.com>
<ken@cdc.net>
George Copeland - 29 Apr 2004 23:11 GMT
> Does anyone have some example code that will execute a DB2 Stored
> Procedure that has one input parameter (long) and returns a rowset?

I assume you are using ADO.

Cmd1.ActiveConnection = Conn1
Cmd1.CommandText = "sp_AdoTest"
Cmd1.CommandType = adCmdStoredProc
Cmd1.Parameters.Refresh
Cmd1.Parameters(1).Value = 10

Set Rs1 = Cmd1.Execute()
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.