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 : "Optimizer is turned off" errrorSearch Forum

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

 New Topic 
 
 Post Reply 
[1]  
 "Optimizer is turned off" errror 
 Author   Message 
  rhapsody 
  
 Group: Members 
 Posts: 30 
 Joined: 2007-03-15 
 Profile
 Posted : 2007-10-31 07:48:16

Upon running the following queries successively in VBDemo, I get an "Optimizer is turned off" error:

INSERT INTO "JournalEntryCreditLine" ("RefNumber", "JournalCreditLineAccountRefListID", "JournalCreditLineAmount", "JournalCreditLineMemo", "FQSaveToCache") VALUES ('1', '800001D1-1187278368', 0.01, 'MRP transaction', 1)
INSERT INTO "JournalEntryDebitLine" ("RefNumber", "JournalDebitLineAccountRefListID", "JournalDebitLineAmount", "JournalDebitLineMemo", "FQSaveToCache") VALUES ('1', '800001CD-1187278037', 0.01, 'MRP Transaction', 0) 

How can I prevent it from occuring.

Thanks!

 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2007-10-31 07:58:26

This normally happens when you have a QODBC v5 registration and are using QODBC v6 or higher. Check the about tab in the QODBC Setup Screen for the current status of your license and your optimizer settings.

The use of the optimizer requires a QODBC CD Key.

 

  Top 
  rhapsody 
  
 Group: Members 
 Posts: 30 
 Joined: 2007-03-15 
 Profile
 Posted : 2007-10-31 08:08:17

My optimizer settings look exactly like your screen shot. And here is how the "About" tab looks like (with the serial number obscured):

If it helps, this problem began after I switched over the QB file to a test file which is an exact replica of the original file.

 

  Top 
  Tom 
  6c3c1_sdk-qodbc.gif
 Group: Administrator 
 Posts: 5510 
 Joined: 2006-02-17 
 Profile
 Posted : 2007-10-31 08:14:27
Ok, by the sounds of things you're trying to confuse the optimizer. If you copy a company file to a test file, you should always change the name of the company file also so the QODBC optimizer can setup a new .opt file. You most likely will need to reset the .opt file as per: How do I switch OFF or RESET the QODBC optimizer?  

  Top 
 New Topic 
 
 Post Reply 
[1]  

Jump to