TSmartQuery [Get RecCount]
TSmartQuery [Get RecCount]
Hello!
Is there an other possibility to call GetRecCount, than the property Options.QueryRecCount?
Thanks.
Is there an other possibility to call GetRecCount, than the property Options.QueryRecCount?
Thanks.
You can manually execute query to get record count:
Code: Select all
OraQuery2.SQL.Text := 'SELECT count(*) FROM (' + OraQuery1.SQL.Text + ')';
OraQuery2.Open;Thanks for your answer.
My problem is, that we have a program which is coded by a outside company and i cannot find the part where GetRecCount is called. QueryRecCount is false and there is no count(*) in the code. But when i start the program, i can always see GetRecCount in the debug window. The count(*) needs roundabout 30 seconds, because of very much data in the table. So it takes a long time till the program is open to use.
Therefore i ask, if there is an another way to call GetRecCount.
My problem is, that we have a program which is coded by a outside company and i cannot find the part where GetRecCount is called. QueryRecCount is false and there is no count(*) in the code. But when i start the program, i can always see GetRecCount in the debug window. The count(*) needs roundabout 30 seconds, because of very much data in the table. So it takes a long time till the program is open to use.
Therefore i ask, if there is an another way to call GetRecCount.
-
[email protected]
- Posts: 10
- Joined: Thu 08 Nov 2007 14:41
Code: Select all
Select count(0) from ....