Member Login

Username
Password
Forget Password
New Sign Up
Search Forum

Buy Support
Incidents

If you can't find your answer in the FREE PUBLIC QDeveloper Forum, require URGENT Priority Support, or you need to send us private or confidential information:

Click Here
If you can't login and post questions or you are having trouble viewing forum posts:
Click Here
Callback
Support

If you live in USA, UK, Canada, Australia or New Zealand, you can leave us details on your question and request us to call you back and discuss them with you personally  (charges apply).

Click Here
 
Buy Support
Incidents
If you can't find your answer in the FREE PUBLIC QDeveloper Forum, require URGENT Priority Support, or you need to send us private or confidential information:
Click Here

Forum : Fastest Way to get Table Record CountSearch Forum

Forum Home > QODBC - ODBC Driver for QuickBooks > QODBC SQL Support Forum

 New Topic 
 
 Post Reply 
[1]  
 Fastest Way to get Table Record Count 
 Author   Message 
  Paul 
  
 Group: Members 
 Posts: 15 
 Joined: 2006-07-26 
 Profile
 Posted : 2007-11-17 08:31:08

What is the fastest way to get the number of records from a table?

Thanks Tom,

Paul

 

 

 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2007-11-18 21:23:33

QODBC would need to scan the whole table to get the record or row count. So you shouldn't do it if don't need to do it. If you must do it, run the query against the optimized table using nosync like this:

SELECT count(listid) as "Table Row Count" from Customer nosync

 

 

  Top 
  Paul 
  
 Group: Members 
 Posts: 15 
 Joined: 2006-07-26 
 Profile
 Posted : 2007-11-19 12:52:55
Thanks Tom, I will try that method. 

  Top 
 New Topic 
 
 Post Reply 
[1]  

Jump to