How many records was updated

Discussion of open issues, suggestions and bugs regarding ODAC (Oracle Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
mariusz
Posts: 62
Joined: Wed 16 Jul 2008 21:04
Location: Poland / Poznan
Contact:

How many records was updated

Post by mariusz » Mon 25 Jan 2010 21:10

I have the following code

Code: Select all

  OraQuery.SQL = "update MyTable set MyColumn=1 where MyColumn=2";
  OraQuery.ExecSql;
How to read, how many records was processed during last update/delete operation (ExecSql)?

I have read about DADataAdapter and Update function, but I have no idea how to use it.

regards
Mariusz

Plash
Devart Team
Posts: 2844
Joined: Wed 10 May 2006 07:09

Post by Plash » Tue 26 Jan 2010 08:30

Please use the RowsAffected property.

mariusz
Posts: 62
Joined: Wed 16 Jul 2008 21:04
Location: Poland / Poznan
Contact:

Post by mariusz » Tue 26 Jan 2010 19:36

Of course... Probably I had a brain eclipse...

thank you Plash

Post Reply