大家来看看,超级Bug?用DBExpress连接MSSQL,执行存储不能返回值,谁能解决,200分
参数都对,存储的语句也正确执行了,就是不能返回得到的值
我是用dbexpress的TSqlStoredProcedure
参数用ptResult,和output都不能返回
create PROCEDURE dbo.sp_log
@vId int,
@vPer_name varchar(10),
@vOper_menu varchar(20)='',
@vOper_comp varchar(15)=''
AS
begin transaction
if @vId=0
insert into oper_log(per_name,oper_menu,oper_time,oper_computer)values(@vPer_name,@vOper_menu,{Fn Now()},@vOper_comp)
else
update oper_log set oper_endtime={Fn Now()}, operate=@vPer_name where oper_id=@vId
commit
return @@identity
我已经查过了论坛很多例子,都不行的
用Ado可以返回值