Ver Mensaje Individual
  #5  
Antiguo 07-09-2012
liito16 liito16 is offline
Miembro
 
Registrado: ago 2010
Posts: 34
Reputación: 0
liito16 Va por buen camino
Código Delphi [-]
var res:integer;
begin
    //if (edt_nombre.Text<>'') AND (edt_clave.Text<>'') then
   // begin
      with DM_VENTAS.sp_validar do
      begin
          SQLConnection:=SQLConnection;
          StoredProcName:='validar';
          Params.ParamByName('user').AsString:='juan';//edt_nombre.Text;
          Params.ParamByName('clave').AsString:='651574';//edt_clave.Text;
          ExecProc;
          res:=Params.ParamByName('res').AsInteger;

          ShowMessage(IntToStr(res));
      end;
    //end;
end;

Así probé, y sigue tirando invalid parameter, pero es lógico que yo tenga el modulo de datos? y haga with DM_ventas.sp_ventas... antes que con el client directamente?, digo por como lo estoy armando yo, si se puede hacer así lo hago.
lo que hice fue pasarle directamente los datos correctos pero sigue tirando el mismo error.
Responder Con Cita