Posted by: Remi
Hi Guys!!!
This is a good one..
I just start to using the library odbsal32.apl and i start to send my
procedures to sql server, but ....
when i execute the procedure with the lines below
Code: Select all
!!CB!! 129
Set sSql = "{call PRC_ORDERDETAIL_MAN (:sDML , :dfOrdNum, :tbl1.colOrdLine
, :tbl1.colProductId, :dfManId, :tbl1.colQuantity ) }"
Call OdrPrepareProc( hSql, sSql , ':sCampo1')
CAST specification
i was trying everything and i discovered that the problem is generated by
the variable :sIdMan char(4)
i send the instruction
Code: Select all
!!CB!! 129
! Set sSql = "{call PRC_ORDERDETAIL_MAN (:sDML ,'007651', :tbl1.colOrdLine
, :tbl1.colProductId, '0001', :tbl1.colQuantity ) }" !esta funciona bien
now i don't know what to do???
Greetings
remi
p.d.
this is the procedure parameters...
Code: Select all
CREATE PROCEDURE PRC_ORDERDETAIL_MAN
@DML CHAR(1), -- I=INSERT , U=UPDATE
@ORDNUM CHAR(6), @ORDLINE CHAR(3), @PROID CHAR(4), @MANID CHAR(4), @ORDQUAN
CHAR(3)