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 

cannot get TADOQuery output parameter

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






PostPosted: Sun Jun 04, 2006 2:47 am    Post subject: cannot get TADOQuery output parameter Reply with quote



I'm using D6 and MSSQL 2000.

I have a stored procedure on the database server:

create procedure myTest
@id int output
as
select @id=123456

My client is using a TADOQuery to execute the procedure.
In code, I set the SQL property to

'exec myTest @id=:id'

and then I seem to have a parameter created, whose value I set.
However, after invoking the method

ADOQuery1.ExecSQL;

the parameter value seems unchanged.

Is there some way of getting the updated value?

Could anyone tell me what the technique is?

Thanks,
Richard
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.