Page 1 of 1

ExecSQL Result

Posted: Tue 14 Jul 2020 12:35
by MatthewB
Using a TMyQuery to UPDATE a record, i need to verify that the ExecSQL successfully performed the update.
I.e. that it found the record and made the update or how many records it did update
some Result := ExecSQL (Boolean or Integer result)
thanks

Re: ExecSQL Result

Posted: Tue 14 Jul 2020 16:01
by davidmarcus
If you use TMyCommand, there is a RowsAffected property.

Re: ExecSQL Result

Posted: Wed 15 Jul 2020 07:02
by ViktorV
As davidmarcus wrote correctly to solve the problem, you can use the TMyQuery.RowsAffected property: https://www.devart.com/mydac/docs/devar ... fected.htm

Re: ExecSQL Result

Posted: Wed 15 Jul 2020 17:10
by MatthewB
Thanks!

Re: ExecSQL Result

Posted: Wed 22 Jul 2020 05:52
by ViktorV
Thank you for the interest in our products.
Contact us if you have any questions about our products.