BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Stored Prod Param Help

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (ADO)
View previous topic :: View next topic  
Author Message
Lou Feliz
Guest





PostPosted: Tue Dec 23, 2003 7:25 am    Post subject: Stored Prod Param Help Reply with quote



I am using ADO with SQL 7 and want to pass a parameter to a SP that will
return a string. My SP has one input param and one output parm. The
input parm is @Name and the output parm is VALUE

The parameters are set to the correct type. I try and set parameter by
calling TSTProc.Parameters[1].Value := 'INPUTVAL'. At runtime I get an
OleException - Parameter Object is improperly defined or inconsistent info
provided.

I will revert o using a simple query to pull the values. Although, a SP is
what my DBA wants me to use.

Any help greatly appreciated.

- Lou


Back to top
Tony J Hopkinson
Guest





PostPosted: Wed Dec 24, 2003 11:16 pm    Post subject: Re: Stored Prod Param Help Reply with quote



The only reason to use a TStoredProc component apart from 'neatness'
is if you want a return value.
a TQuery witrh an exec statement will do just as well the DBMS won't
care at all.

Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi Databases (ADO) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.