A better way of passing parameters to a TADOStoredProc (Delphi)

后端 未结 4 886
隐瞒了意图╮
隐瞒了意图╮ 2021-01-02 11:56

I am needing to convert a large amount of SQL queries into stored procedures. I have some code that updates about 20 or 30 values at one time in one Delphi procedure. I can

4条回答
  •  长发绾君心
    2021-01-02 12:34

    This is the shortest I know:

    stored_procedure.Parameters.ParamByName('@SSN').Value := edtSSN.text;
    

    Note, you need to assign the stored_procedure.Connection and call stored_procedure.Parameters.Refresh; before doing this

提交回复
热议问题