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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

idispatch error 3092 : ADO

Status
Not open for further replies.

youssef

Programmer
Mar 13, 2001
96
BE
Hi,

I have an error when I executing my stored procedure.
If anyone can help me for that it is great ?


My sample code is :

I would like that the stored procedure return a int value. But I dont know how can I do this ?

_variant_t vtroyal ;
int intRoyalty =0;

//Assign Integer value
vtroyal.vt = VT_I4;
vtroyal.iVal = intRoyalty;
pParam4 = pCmd2->CreateParameter ( _bstr_t ("StartFileNumV2"), adInteger,
adParamReturnValue, sizeof(int), vtroyal);

pCmd2->Parameters->Append ( pParam4);

When I execute this a error message appear :

idispatch error 3092 : ADO

Best regards
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top