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 : Duplication of Data from Optimized DatabaseSearch Forum

Forum Home > QODBC - ODBC Driver for QuickBooks > QODBC v9 Forum

 New Topic 
 
 Post Reply 
[1]  
 Duplication of Data from Optimized Database 
 Author   Message 
  swatkins 
  
 Group: Members 
 Posts: 2 
 Joined: 2008-11-01 
 Profile
 Posted : 2008-11-01 05:23:08

We had a custom report in Crystal developed for us to, on a job by job basis, report invoice item information and a/r information. However, the Optimized database that QODBC creates for us seems to duplicate and triplicate some data, which makes it appear we've billed two or three times more than actual.

Has anyone else run into this problem? Or, can anyone recommend who we should have look more closely at this for us? The person who developed the report for us seems stumped, so we're ready to move on to another expert.

We have QB Enterprise 8 with the QODBC Driver that comes with it; Chrystal Reports XI, and use chrystalreports.com to publish an updated version of the report each night. This all runs on our Windows server. Everything seems to work as it should, main problem is that some data gets read into the report too many times. Our QB company file is 95,500 kb in size.

Thanks, Scott Watkins
swatkins@aeg1.com

 

 

 
Scott Watkins
Senior Consultant
Anderson Economic Group, LLC 
 
  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2008-11-03 21:38:35

The QODBC optimizer does not duplicate and triplicate some data, however because of poor design by Intuit, QuickBooks does not update the timemodified timestamp when existing data is modifed, so it's possible some link information has been changed and isn't seen by your report.

To combat this we added the VERIFY tag that forces the optimized table to be rebuilt before a complicated join is done in Crystal Reports. See: How do I setup the QODBC Optimizer? Where are the Optimizer options? for more.

 

  Top 
  swatkins 
  
 Group: Members 
 Posts: 2 
 Joined: 2008-11-01 
 Profile
 Posted : 2008-11-05 02:34:05

Hi Tom,

Is the below material what you were refering too? Also, I'm not very familiar with crystal report or programming in general. Is there anyone you'd recommened that we could retain to help us with this?

Thanks, Scott

With the release of QODBC v6.00.00.155 we had to do a little more checking for deleted transactions and payments so tables that reference a open balance now run slower. Most users tend to use queries like:

SELECT * from Customer

which will run slowly as QODBC has to display the correct current balance for each customer, while this will run much faster:

SELECT "Name","LastName","FirstName","BillAddressAddr1",
"BillAddressAddr2","BillAddressCity",
"BillAddressState","BillAddressPostalcode"
from Customer

However 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

For example, to read new (recent) InvoiceLines directly out of QuickBooks use:

select * from InvoiceLine UNOPTIMIZED WHERE Txndate > {d '2006-04-01'}

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 WHERE Txndate > {d '2006-04-01'}

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

Another good example of using NOSYNC would be to get for example all historical 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 like Sales Commisions etc.

 

 
Scott Watkins
Senior Consultant
Anderson Economic Group, LLC 
 
  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2008-11-05 10:11:14

For more information on using Crystal Reports click here.

 

  Top 
 New Topic 
 
 Post Reply 
[1]  

Jump to