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 : QODBC - Access performanceSearch Forum

Forum Home > QODBC - ODBC Driver for QuickBooks > QODBC Frequently Asked Questions

 New Topic 
 
 Post Reply 
[1]  
 QODBC - Access performance 
 Author   Message 
  Dustin Kuhn 
  
 Group: Members 
 Posts: 4 
 Joined: 2006-04-28 
 Profile
 Posted : 2006-04-28 08:03:22

What is the fastest way to get data out of QODBC from Access.  We are currently copying about 15 of the QuickBooks tables into Access tables, but when we update these tables to get any changes from QuickBooks it takes over an hour to copy all the data.  I am using linked tables to get the QODBC data and the sample code from the support article " I just want to copy the data from a QODBC table to Access. What is the best way to do this?"  Is the best solution for us as we are accessing so many tables and want the data to be as live as possible.  We tried accessing the QuickBooks table directly through linked tables, but that was also very slow.  Appreciate any assistance you can provide.

Dustin Kuhn

 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2006-04-28 09:50:17

The main issue with using MS Access is that users tend to use datasheet views instead of using pass through queries and forms which run a whole lot faster. See: How do I create a Pass-Through Report using Microsoft Access 2003? for more.

By using pass through queries you can call QuickBooks directly and you can also override your QODBC Optimizer configuration screen settings to suit what you are actually doing by using the following tags:

VERIFIED | VERIFY - Forces Full Resync with QuickBooks on the optimized table before Query starts
CALLDIRECT | UNOPTIMIZED - Passthru query directly to QuickBooks - use no optimizations
OPTIMIZE | OPTIMIZED | NOSYNC - Passthru query to optimized table directly for maximum speed

Examples:

select * from InvoiceLine UNOPTIMIZED
select * from InvoiceLine NOSYNC
select * from InvoiceLine VERIFIED

To read all the InvoiceLines directly out of QuickBooks use:

select * from InvoiceLine UNOPTIMIZED

Or you can resync your optimized InvoiceLine table by first doing:

sp_optimizefullsync InvoiceLine

then read directly out of the optimized table by doing:

select * from InvoiceLine NOSYNC

This is very f...a.......s.................t.

Another good example of using NOSYNC would be to get for example all invoicelines before 2003:

SELECT * from InvoiceLine NOSYNC WHERE Txndate < {d '2004-01-01'}

as invocies before 2004 don't ever change, you can read them directly from the QODBC Optimizer. You just need to use unoptimized for crtical operations.

 

  Top 
 New Topic 
 
 Post Reply 
[1]  

Jump to