如何给数据窗体传递参数?
SQL SERVER 2000的存储过程为:
CREATE Procedure P0002
@ID varchar(12)
AS
begin transaction
select * from D00001 where t_id=@ID
if @@error=0 begin
commit transaction
end else begin
rollback transaction
return
end
GO
调用存储过程:
dw_1.settransobject(sqlca)
dw_1.retrieve(ID)
在运行时总提示我"过程P0002需要参数@ID,但未提供参数"
请问如何解决?