 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Guest
|
Posted: Sun Jun 04, 2006 2:47 am Post subject: cannot get TADOQuery output parameter |
|
|
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 |
|
 |
|
|
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
|
|