LPARAMETERS cConnString As String ,cComando As String, lcParam As String oConn = CREATEOBJECT("ADODB.Connection") oComando = CREATEOBJECT("ADODB.Command") oRS = CREATEOBJECT("ADODB.Recordset") oConn.Connectionstring = cConnString oConn.Open IF TYPE("lcParam")="U" lcParam="" ENDIF *--- cComando = name of the desired procedure *--- lcParam = string with parameters oComando.CommandText= cComando+" "+lcParam oComando.ActiveConnection=oConn oRS = oComando.Execute() oConn = Null oComando = Null RETURN oRS>Assuming we have the following SQL stored procedure:
>CREATE PROCEDURE usp_test > @Number INT, > @NewNumber INT OUTPUT >AS >SET @NewNumber = @Number + 3 >RETURN @NewNumber >GO >>
>LOCAL lnIn AS Integer, lnOut AS Integer, lnReturn AS Integer >lnIn=15 >oConn.Execute("What?") >>
>lnReturn = oConn.usp_test(lnIn, @lnOut) >>I has not been able to get it working. Has anyone?