UniScript and RowsAffected

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Eurocg
Posts: 14
Joined: Tue 15 Jul 2008 08:11
Location: Germany

UniScript and RowsAffected

Post by Eurocg » Thu 16 Feb 2012 08:59

Hello
is here any way to get the 'RowsAffected' for update and delete statement, if i use UniScript?

Thx
Christian

AlexP
Devart Team
Posts: 5530
Joined: Tue 10 Aug 2010 11:35

Post by AlexP » Thu 16 Feb 2012 10:45

Hello,

The RowsAffected property is not supported by TUniScript, however, you can retrieve the rows affected number by attaching any DataSet (for example, TUniQuery) to TUniScript and summing up the RowsAffected property value in the AfterExecute event of the DataSet after each operation. When attaching DataSet, the operators specified in UniScript are executed with the help of this DataSet.

Post Reply