Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Fast OLEDB Record Count?
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00634258
Message ID:
00634908
Views:
19
>With the OLEDB driver, I am trying to get a fast count of rows in a table. If I give it a "select count(*)" and the table is huge, it takes 4-5 seconds. Whereas if I am in the IDE, I can just USE the table and ? reccount() and see it in zero seconds.
>
>Is there anything comparable with OLEDB or ADOX?
>
>Thanks.

Try
oRs.Open("Select Reccount() FROM orders where Recno()=1", oCon)
Maybe you can create stored procedure to return record count?
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform