Got a little conversion question here.
With the TUpdateSQL I was able to set parameters in the 'Query' for the update with the following code :
Usql.Query[ukInsert].ParamByName('test').AsString := SubStr;
With the TMSUpdateSQL, the Query property doesn't exist. So that code doesn't work. There is the SQL property, but it's only TStrings. Am I missing something ?
Thanks.
Jean-François Picard
TMSUpdateSQL
But when you want to add a Foreign key into your query to update the table, a TUpdateSQL is very usefull.
We always doing something like:
usqltest.Query[UpdateKind].ParamByName('IDFK').AsString := qry.FieldByName('ID').AsString;
With usqltest bind to the qrytest fo example. For simple update, we don't use any TUpdateSQL.
Thanks.
We always doing something like:
usqltest.Query[UpdateKind].ParamByName('IDFK').AsString := qry.FieldByName('ID').AsString;
With usqltest bind to the qrytest fo example. For simple update, we don't use any TUpdateSQL.
Thanks.