Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Executing a stored proceedure from VB6

Status
Not open for further replies.

DebbieCoates

Programmer
Joined
Oct 2, 2007
Messages
23
Location
GB
if i have already set a connection up to my server
can i then use this in vb to execute a stored proceedure

dim str as string

str = cnn.Execute sp_GetPCON 'input parameter'

so that str will now contain the output parameter of my stored proceedure, or do i have to set up a command object?

 
You can have a look at the ADODB.Command object.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top