| |
| TIBQuery.RecordCount doesn't return count of all records |
 |
When I execute TIBQuery.RecordCount why doesn't it give me a count of all my records in my Query?
TIBQuery.RecordCount does the same thing as TIBSQL.RecordCount. Here is what Help says for TIBSQL.RecordCount: Use the RecordCount property to see how many records are returned by a query. If the result set is to return 00 rows, RecordCount will only be 00 after all the records have been visited. That is, after looking at the first record, RecordCount is , and so forth.
The reason RecordCount operates in this fashion is calculating all the records in a dataset is potentially time consuming operation as it would require scanning through the entire dataset. The most efficient way to calculate the number of records in a dataset is to execute a SELECT COUNT(*) statement.
|
|
| Hits/month |
2,500,000+ |
Downloads (Since May 2000) |
7,393,709 |
| Total Files |
6,023 |
| Forum msgs |
7,670 |
| Articles/FAQs |
70+/900+ |
Top Selling Software at Amazon
|