I use ADODB in Delphi 7 and, for UPDATE queries, I get the number of modified records with TADOConnection Execute procedure “recordsAffected” variable.
like this :
MyConnexion.Execute(sReq, iResReq, [eoExecuteNoRecords]);
Where iResReq is the modified records number.
Now I want to use parameterized queries with parameterized SQL like :
SQL.Add('UPDATE TABLE SET NAME="TEST" WHERE NAME=:PARAM);
Parameters.ParamByName('PARAM').text:='Smith';
but I don’t really know how to find the modified record count.
In addition to my question do you know a good tuto about ADODB parameterized queries ?
Using a TADOCommand you can do something like this.
It is also possible to do with a TADOQuery if you use ExecSQL (as mentioned by TLama in comment).