Unix Technical Forum

I cant start the SP?

This is a discussion on I cant start the SP? within the Informix forums, part of the Database Server Software category; --> Hi, VB6, ADO2.8, Informix Client 2.90 / Server 10.0 with the following code I should be able to start ...


Go Back   Unix Technical Forum > Database Server Software > Informix

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-20-2008, 12:59 PM
Michael Andreas
 
Posts: n/a
Default I cant start the SP?

Hi,
VB6, ADO2.8, Informix Client 2.90 / Server 10.0

with the following code I should be able to start a stored procedure.
The right parameters are automaticly generated by the command:
Parameters.Refresh

I get the error :
Error 3708
The application has improperly defined a Parameter object.

- I can start other sp's
- significant is a variable of type adVarBinary at this sp


My Questions:
- Infomix unsupported the Parmeters.Refresh ?
- who is able to help me?

thanks


'BeginAutoParamCmd
' Set CommandText equal to the stored procedure name.
objCmd.CommandText = "CustOrdersOrders"
objCmd.CommandType = adCmdStoredProc

' Connect to the data source.
Set objConn = GetNewConnection
objCmd.ActiveConnection = objConn

' Automatically fill in parameter info from stored procedure.
objCmd.Parameters.Refresh

' Execute once and display...
Set objRs = objCmd.Execute


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-20-2008, 12:59 PM
maccathuil
 
Posts: n/a
Default Re: I cant start the SP?

Hi there,
can you please list the actual stored procedure that you are trying to
execute from VB?

thanks

Michael Andreas wrote:
> Hi,
> VB6, ADO2.8, Informix Client 2.90 / Server 10.0
>
> with the following code I should be able to start a stored procedure.
> The right parameters are automaticly generated by the command:
> Parameters.Refresh
>
> I get the error :
> Error 3708
> The application has improperly defined a Parameter object.
>
> - I can start other sp's
> - significant is a variable of type adVarBinary at this sp
>
>
> My Questions:
> - Infomix unsupported the Parmeters.Refresh ?
> - who is able to help me?
>
> thanks
>
>
> 'BeginAutoParamCmd
> ' Set CommandText equal to the stored procedure name.
> objCmd.CommandText = "CustOrdersOrders"
> objCmd.CommandType = adCmdStoredProc
>
> ' Connect to the data source.
> Set objConn = GetNewConnection
> objCmd.ActiveConnection = objConn
>
> ' Automatically fill in parameter info from stored procedure.
> objCmd.Parameters.Refresh
>
> ' Execute once and display...
> Set objRs = objCmd.Execute


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-20-2008, 12:59 PM
maccathuil
 
Posts: n/a
Default Re: I cant start the SP?

another thing to try might be calling the stored proc with the correct
number of parameters like

objCmd.CommandText = "CustOrdersOrders(?,?) for 2 params for example


maccathuil wrote:
> Hi there,
> can you please list the actual stored procedure that you are trying to
> execute from VB?
>
> thanks
>
> Michael Andreas wrote:
> > Hi,
> > VB6, ADO2.8, Informix Client 2.90 / Server 10.0
> >
> > with the following code I should be able to start a stored procedure.
> > The right parameters are automaticly generated by the command:
> > Parameters.Refresh
> >
> > I get the error :
> > Error 3708
> > The application has improperly defined a Parameter object.
> >
> > - I can start other sp's
> > - significant is a variable of type adVarBinary at this sp
> >
> >
> > My Questions:
> > - Infomix unsupported the Parmeters.Refresh ?
> > - who is able to help me?
> >
> > thanks
> >
> >
> > 'BeginAutoParamCmd
> > ' Set CommandText equal to the stored procedure name.
> > objCmd.CommandText = "CustOrdersOrders"
> > objCmd.CommandType = adCmdStoredProc
> >
> > ' Connect to the data source.
> > Set objConn = GetNewConnection
> > objCmd.ActiveConnection = objConn
> >
> > ' Automatically fill in parameter info from stored procedure.
> > objCmd.Parameters.Refresh
> >
> > ' Execute once and display...
> > Set objRs = objCmd.Execute


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 09:04 AM.


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