working with stored procedure and asp
how to receive output variable from stored procedure in asp variable?
for example, i have my stored procedure with output variable that is sp_generate
in this stored procedure, i generating code for every new transaction
in my query analizer, this stored procedure run without any error
and give the new code as output and the new code is printed in result grid.
(run as : "sp_generate '0601', a")
some one can help me? or you have sample of asp coding that working with stored procedure that is having output variable ?
this is my stored procedure code:
create proc sp_generate
@front char(4),
@fin char(9)OUTPUT
as .......
in asp :
set objRS = server.CreateObject("ADODB.RecordSet")
set conn = server.CreateObject("ADODB.Connection")
recently, i'm using objRS.open method like
objRS.open "SQL string", conn,1,3
what should i do in my code to receive that output with open method??
thanks alotttt..
|