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 : Extreme Slowness finding DISTINCT Invoice Templates?Search Forum

Forum Home > QODBC - ODBC Driver for QuickBooks > QODBC Bug Reports

 New Topic 
 
 Post Reply 
[1]  
 Extreme Slowness finding DISTINCT Invoice Templates? 
 Author   Message 
  peteb 
  
 Group: Members 
 Posts: 2 
 Joined: 2006-04-28 
 Profile
 Posted : 2006-05-02 10:00:26

 

Using C#
QB Enterprise Contractor Version 6
On a firebreathing PC with everything local (no network access)
The connection was opened in multiuser mode

I tried executing the following SQL

SELECT DISTINCT TemplateRefFullName FROM Invoice

It took over 20 minutes to come back with 4 records, am I doing something wrong?

 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2006-05-02 10:51:41

The query:

SELECT DISTINCT TemplateRefFullName FROM Invoice

will do a full scan of every invoice in your QuickBooks company file back to 1960 if it's there! So the more invoices you have, the longer it will take. This might be a little more practical:

SELECT DISTINCT TemplateRefFullName FROM Invoice where TxnDate>{d'2005-01-01'}

and took less than 4 seconds on my computer. But if you are just looking for Invoice Templates do:

SELECT ListID, Name, IsActive FROM Template where TemplateType = 'Invoice'

 

  Top 
 New Topic 
 
 Post Reply 
[1]  

Jump to